summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /sax
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/sax_expat.cxx8
-rw-r--r--sax/source/expatwrap/xml2utf.cxx8
-rw-r--r--sax/source/fastparser/fastparser.cxx30
-rw-r--r--sax/test/saxdemo.cxx30
-rw-r--r--sax/test/testcomponent.cxx2
5 files changed, 39 insertions, 39 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index da115859953a..9719335d7831 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -349,9 +349,9 @@ extern "C"
}
-//---------------------------------------------
+
// LocatorImpl
-//---------------------------------------------
+
class LocatorImpl :
public WeakImplHelper2< XLocator, com::sun::star::io::XSeekable >
// should use a different interface for stream positions!
@@ -758,11 +758,11 @@ void SaxExpatParser_Impl::parse( )
} // while
}
-//------------------------------------------
+
//
// The C-Callbacks
//
-//-----------------------------------------
+
void SaxExpatParser_Impl::callbackStartElement( void *pvThis ,
const XML_Char *pwName ,
const XML_Char **awAttributes )
diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx
index 6e0f2e94019b..6c5feceb2adc 100644
--- a/sax/source/expatwrap/xml2utf.cxx
+++ b/sax/source/expatwrap/xml2utf.cxx
@@ -343,11 +343,11 @@ void XMLFile2UTFConverter::initializeDecoding()
}
-//----------------------------------------------
+
//
// Text2UnicodeConverter
//
-//----------------------------------------------
+
Text2UnicodeConverter::Text2UnicodeConverter( const OString &sEncoding )
{
rtl_TextEncoding encoding = rtl_getTextEncodingFromMimeCharset( sEncoding.getStr() );
@@ -449,11 +449,11 @@ Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &
-//----------------------------------------------
+
//
// Unicode2TextConverter
//
-//----------------------------------------------
+
Unicode2TextConverter::Unicode2TextConverter( rtl_TextEncoding encoding )
{
init( encoding );
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 067b13a60e07..ba63596ca5ff 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -350,7 +350,7 @@ sal_Int32 SAL_CALL FastLocatorImpl::getColumnNumber(void) throw (RuntimeExceptio
return XML_GetCurrentColumnNumber( mpParser->getEntity().mpParser );
}
-// --------------------------------------------------------------------
+
sal_Int32 SAL_CALL FastLocatorImpl::getLineNumber(void) throw (RuntimeException)
{
@@ -358,14 +358,14 @@ sal_Int32 SAL_CALL FastLocatorImpl::getLineNumber(void) throw (RuntimeException)
return XML_GetCurrentLineNumber( mpParser->getEntity().mpParser );
}
-// --------------------------------------------------------------------
+
OUString SAL_CALL FastLocatorImpl::getPublicId(void) throw (RuntimeException)
{
checkDispose();
return mpParser->getEntity().maStructSource.sPublicId;
}
-// --------------------------------------------------------------------
+
OUString SAL_CALL FastLocatorImpl::getSystemId(void) throw (RuntimeException)
{
@@ -373,7 +373,7 @@ OUString SAL_CALL FastLocatorImpl::getSystemId(void) throw (RuntimeException)
return mpParser->getEntity().maStructSource.sSystemId;
}
-// --------------------------------------------------------------------
+
ParserData::ParserData()
: mpTokenHandler( NULL )
@@ -382,7 +382,7 @@ ParserData::ParserData()
ParserData::~ParserData()
{}
-// --------------------------------------------------------------------
+
Entity::Entity(const ParserData& rData)
: ParserData(rData)
@@ -632,7 +632,7 @@ FastSaxParserImpl::FastSaxParserImpl( FastSaxParser* pFront ) :
mxDocumentLocator.set( new FastLocatorImpl( this ) );
}
-// --------------------------------------------------------------------
+
FastSaxParserImpl::~FastSaxParserImpl()
{
@@ -640,7 +640,7 @@ FastSaxParserImpl::~FastSaxParserImpl()
mxDocumentLocator->dispose();
}
-// --------------------------------------------------------------------
+
void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const sal_Char* pNamespaceURL )
{
@@ -658,7 +658,7 @@ void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const sal_Char*
}
}
-// --------------------------------------------------------------------
+
sal_Int32 FastSaxParserImpl::GetToken( const sal_Char* pToken, sal_Int32 nLen /* = 0 */ )
{
@@ -667,7 +667,7 @@ sal_Int32 FastSaxParserImpl::GetToken( const sal_Char* pToken, sal_Int32 nLen /*
pToken, nLen );
}
-// --------------------------------------------------------------------
+
sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const sal_Char*pPrefix, int nPrefixLen, const sal_Char* pName, int nNameLen ) throw (SAXException)
{
@@ -699,7 +699,7 @@ sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const sal_Char*pPrefix, int nPr
return FastToken::DONTKNOW;
}
-// --------------------------------------------------------------------
+
sal_Int32 FastSaxParserImpl::GetNamespaceToken( const OUString& rNamespaceURL )
{
@@ -710,7 +710,7 @@ sal_Int32 FastSaxParserImpl::GetNamespaceToken( const OUString& rNamespaceURL )
return FastToken::DONTKNOW;
}
-// --------------------------------------------------------------------
+
OUString FastSaxParserImpl::GetNamespaceURL( const OString& rPrefix ) throw (SAXException)
{
@@ -746,7 +746,7 @@ OUString FastSaxParserImpl::GetNamespaceURL( const sal_Char*pPrefix, int nPrefix
throw SAXException(); // prefix that has no defined namespace url
}
-// --------------------------------------------------------------------
+
sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceToken, const sal_Char* pName, int nNameLen )
{
@@ -760,7 +760,7 @@ sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceT
return FastToken::DONTKNOW;
}
-// --------------------------------------------------------------------
+
void FastSaxParserImpl::splitName( const XML_Char *pwName, const XML_Char *&rpPrefix, sal_Int32 &rPrefixLen, const XML_Char *&rpName, sal_Int32 &rNameLen )
{
@@ -1086,11 +1086,11 @@ void FastSaxParserImpl::parse()
produce( DONE );
}
-//------------------------------------------
+
//
// The C-Callbacks
//
-//-----------------------------------------
+
void FastSaxParserImpl::callbackStartElement( const XML_Char* pwName, const XML_Char** awAttributes )
{
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 4d7be76653a7..eb89b67019fb 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-//------------------------------------------------------
+
// testcomponent - Loads a service and its testcomponent from dlls performs a test.
// Expands the dll-names depending on the actual environment.
// Example : testcomponent com.sun.star.io.Pipe stm
@@ -103,9 +103,9 @@ public:
sal_Int32 nPos;
};
-//-------------------------------
+
// Helper : create an input stream from a file
-//------------------------------
+
Reference< XInputStream > createStreamFromFile(
const char *pcFile )
{
@@ -126,10 +126,10 @@ Reference< XInputStream > createStreamFromFile(
return r;
}
-//-----------------------------------------
+
// The document handler, which is needed for the saxparser
// The Documenthandler for reading sax
-//-----------------------------------------
+
class TestDocumentHandler :
public WeakImplHelper3< XExtendedDocumentHandler , XEntityResolver , XErrorHandler >
{
@@ -247,10 +247,10 @@ public:
int m_iCharCount;
};
-//--------------------------------------
+
// helper implementation for writing
// implements an XAttributeList
-//-------------------------------------
+
struct AttributeListImpl_impl;
class AttributeListImpl : public WeakImplHelper1< XAttributeList >
{
@@ -397,13 +397,13 @@ void AttributeListImpl::clear()
}
-//--------------------------------------
+
// helper function for writing
// ensures that linebreaks are inserted
// when writing a long text.
// Note: this implementation may be a bit slow,
// but it shows, how the SAX-Writer handles the allowLineBreak calls.
-//--------------------------------------
+
void writeParagraphHelper(
const Reference< XExtendedDocumentHandler > &r ,
const OUString & s)
@@ -427,10 +427,10 @@ void writeParagraphHelper(
}
-//---------------------------------
+
// helper implementation for SAX-Writer
// writes data to a file
-//--------------------------------
+
class OFileWriter :
public WeakImplHelper1< XOutputStream >
{
@@ -528,10 +528,10 @@ int main (int argc, char **argv)
}
- //--------------------------------
+
// parser demo
// read xml from a file and count elements
- //--------------------------------
+
Reference< XInterface > x = xSMgr->createInstance(
OUString("com.sun.star.xml.sax.Parser") );
if( x.is() )
@@ -570,9 +570,9 @@ int main (int argc, char **argv)
}
- //----------------------
+
// The SAX-Writer demo
- //----------------------
+
x= xSMgr->createInstance("com.sun.star.xml.sax.Writer");
if( x.is() )
{
diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx
index 0413af256c85..a0ca81fa3b0e 100644
--- a/sax/test/testcomponent.cxx
+++ b/sax/test/testcomponent.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-//------------------------------------------------------
+
// testcomponent - Loads a service and its testcomponent from dlls performs a test.
// Expands the dll-names depending on the actual environment.
// Example : testcomponent com.sun.star.io.Pipe stm