Kaydet (Commit) 54ebae0e authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

remove whitespaces

Change-Id: I624ca41c3e51ba785e359649c429feb61cc9a647
üst b7381c51
...@@ -350,31 +350,24 @@ sal_Int32 SAL_CALL FastLocatorImpl::getColumnNumber(void) throw (RuntimeExceptio ...@@ -350,31 +350,24 @@ sal_Int32 SAL_CALL FastLocatorImpl::getColumnNumber(void) throw (RuntimeExceptio
return XML_GetCurrentColumnNumber( mpParser->getEntity().mpParser ); return XML_GetCurrentColumnNumber( mpParser->getEntity().mpParser );
} }
sal_Int32 SAL_CALL FastLocatorImpl::getLineNumber(void) throw (RuntimeException, std::exception) sal_Int32 SAL_CALL FastLocatorImpl::getLineNumber(void) throw (RuntimeException, std::exception)
{ {
checkDispose(); checkDispose();
return XML_GetCurrentLineNumber( mpParser->getEntity().mpParser ); return XML_GetCurrentLineNumber( mpParser->getEntity().mpParser );
} }
OUString SAL_CALL FastLocatorImpl::getPublicId(void) throw (RuntimeException, std::exception) OUString SAL_CALL FastLocatorImpl::getPublicId(void) throw (RuntimeException, std::exception)
{ {
checkDispose(); checkDispose();
return mpParser->getEntity().maStructSource.sPublicId; return mpParser->getEntity().maStructSource.sPublicId;
} }
OUString SAL_CALL FastLocatorImpl::getSystemId(void) throw (RuntimeException, std::exception) OUString SAL_CALL FastLocatorImpl::getSystemId(void) throw (RuntimeException, std::exception)
{ {
checkDispose(); checkDispose();
return mpParser->getEntity().maStructSource.sSystemId; return mpParser->getEntity().maStructSource.sSystemId;
} }
ParserData::ParserData() ParserData::ParserData()
: mpTokenHandler( NULL ) : mpTokenHandler( NULL )
{} {}
...@@ -382,8 +375,6 @@ ParserData::ParserData() ...@@ -382,8 +375,6 @@ ParserData::ParserData()
ParserData::~ParserData() ParserData::~ParserData()
{} {}
Entity::Entity(const ParserData& rData) Entity::Entity(const ParserData& rData)
: ParserData(rData) : ParserData(rData)
, mnProducedEventsSize(0) , mnProducedEventsSize(0)
...@@ -632,16 +623,12 @@ FastSaxParserImpl::FastSaxParserImpl( FastSaxParser* pFront ) : ...@@ -632,16 +623,12 @@ FastSaxParserImpl::FastSaxParserImpl( FastSaxParser* pFront ) :
mxDocumentLocator.set( new FastLocatorImpl( this ) ); mxDocumentLocator.set( new FastLocatorImpl( this ) );
} }
FastSaxParserImpl::~FastSaxParserImpl() FastSaxParserImpl::~FastSaxParserImpl()
{ {
if( mxDocumentLocator.is() ) if( mxDocumentLocator.is() )
mxDocumentLocator->dispose(); mxDocumentLocator->dispose();
} }
void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const sal_Char* pNamespaceURL ) void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const sal_Char* pNamespaceURL )
{ {
Entity& rEntity = getEntity(); Entity& rEntity = getEntity();
...@@ -658,8 +645,6 @@ void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const sal_Char* ...@@ -658,8 +645,6 @@ void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const sal_Char*
} }
} }
sal_Int32 FastSaxParserImpl::GetToken( const sal_Char* pToken, sal_Int32 nLen /* = 0 */ ) sal_Int32 FastSaxParserImpl::GetToken( const sal_Char* pToken, sal_Int32 nLen /* = 0 */ )
{ {
return maTokenLookup.getTokenFromChars( getEntity().mxTokenHandler, return maTokenLookup.getTokenFromChars( getEntity().mxTokenHandler,
...@@ -667,8 +652,6 @@ sal_Int32 FastSaxParserImpl::GetToken( const sal_Char* pToken, sal_Int32 nLen /* ...@@ -667,8 +652,6 @@ sal_Int32 FastSaxParserImpl::GetToken( const sal_Char* pToken, sal_Int32 nLen /*
pToken, nLen ); pToken, nLen );
} }
sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const sal_Char*pPrefix, int nPrefixLen, const sal_Char* pName, int nNameLen ) throw (SAXException) sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const sal_Char*pPrefix, int nPrefixLen, const sal_Char* pName, int nNameLen ) throw (SAXException)
{ {
sal_Int32 nNamespaceToken = FastToken::DONTKNOW; sal_Int32 nNamespaceToken = FastToken::DONTKNOW;
...@@ -699,8 +682,6 @@ sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const sal_Char*pPrefix, int nPr ...@@ -699,8 +682,6 @@ sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const sal_Char*pPrefix, int nPr
return FastToken::DONTKNOW; return FastToken::DONTKNOW;
} }
sal_Int32 FastSaxParserImpl::GetNamespaceToken( const OUString& rNamespaceURL ) sal_Int32 FastSaxParserImpl::GetNamespaceToken( const OUString& rNamespaceURL )
{ {
NamespaceMap::iterator aIter( maNamespaceMap.find( rNamespaceURL ) ); NamespaceMap::iterator aIter( maNamespaceMap.find( rNamespaceURL ) );
...@@ -710,8 +691,6 @@ sal_Int32 FastSaxParserImpl::GetNamespaceToken( const OUString& rNamespaceURL ) ...@@ -710,8 +691,6 @@ sal_Int32 FastSaxParserImpl::GetNamespaceToken( const OUString& rNamespaceURL )
return FastToken::DONTKNOW; return FastToken::DONTKNOW;
} }
OUString FastSaxParserImpl::GetNamespaceURL( const OString& rPrefix ) throw (SAXException) OUString FastSaxParserImpl::GetNamespaceURL( const OString& rPrefix ) throw (SAXException)
{ {
Entity& rEntity = getEntity(); Entity& rEntity = getEntity();
...@@ -746,8 +725,6 @@ OUString FastSaxParserImpl::GetNamespaceURL( const sal_Char*pPrefix, int nPrefix ...@@ -746,8 +725,6 @@ OUString FastSaxParserImpl::GetNamespaceURL( const sal_Char*pPrefix, int nPrefix
throw SAXException(); // prefix that has no defined namespace url throw SAXException(); // prefix that has no defined namespace url
} }
sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceToken, const sal_Char* pName, int nNameLen ) sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceToken, const sal_Char* pName, int nNameLen )
{ {
if( nNamespaceToken != FastToken::DONTKNOW ) if( nNamespaceToken != FastToken::DONTKNOW )
...@@ -760,8 +737,6 @@ sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceT ...@@ -760,8 +737,6 @@ sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceT
return FastToken::DONTKNOW; return FastToken::DONTKNOW;
} }
void FastSaxParserImpl::splitName( const XML_Char *pwName, const XML_Char *&rpPrefix, sal_Int32 &rPrefixLen, const XML_Char *&rpName, sal_Int32 &rNameLen ) void FastSaxParserImpl::splitName( const XML_Char *pwName, const XML_Char *&rpPrefix, sal_Int32 &rPrefixLen, const XML_Char *&rpName, sal_Int32 &rNameLen )
{ {
XML_Char *p; XML_Char *p;
...@@ -1086,12 +1061,7 @@ void FastSaxParserImpl::parse() ...@@ -1086,12 +1061,7 @@ void FastSaxParserImpl::parse()
produce( DONE ); produce( DONE );
} }
// The C-Callbacks // The C-Callbacks
void FastSaxParserImpl::callbackStartElement( const XML_Char* pwName, const XML_Char** awAttributes ) void FastSaxParserImpl::callbackStartElement( const XML_Char* pwName, const XML_Char** awAttributes )
{ {
Entity& rEntity = getEntity(); Entity& rEntity = getEntity();
...@@ -1239,7 +1209,6 @@ void FastSaxParserImpl::callbackEndElement( SAL_UNUSED_PARAMETER const XML_Char* ...@@ -1239,7 +1209,6 @@ void FastSaxParserImpl::callbackEndElement( SAL_UNUSED_PARAMETER const XML_Char*
rEntity.endElement(); rEntity.endElement();
} }
void FastSaxParserImpl::callbackCharacters( const XML_Char* s, int nLen ) void FastSaxParserImpl::callbackCharacters( const XML_Char* s, int nLen )
{ {
Entity& rEntity = getEntity(); Entity& rEntity = getEntity();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment