summaryrefslogtreecommitdiff
path: root/sax/test
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/test
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/test')
-rw-r--r--sax/test/saxdemo.cxx30
-rw-r--r--sax/test/testcomponent.cxx2
2 files changed, 16 insertions, 16 deletions
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