summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-02-09 18:16:42 +1100
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-12 22:06:25 -0400
commit8dcf22abfc6a07ececcef6bb830fdea825d416ec (patch)
tree7e0b3686991aef9689218ed309f462987f36e273 /sax
parentb91e39cf1b2d0c4201993d768a1b2c686eeff0de (diff)
Remove excess newlines
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit a238b1f8d304bf1e2ffb357937f3ec888ee8ac89) Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Diffstat (limited to 'sax')
-rw-r--r--sax/inc/xml2utf.hxx2
-rw-r--r--sax/source/expatwrap/sax_expat.cxx5
-rw-r--r--sax/source/expatwrap/xml2utf.cxx5
-rw-r--r--sax/source/tools/converter.cxx1
-rw-r--r--sax/test/sax/testwriter.cxx16
-rw-r--r--sax/test/saxdemo.cxx8
6 files changed, 0 insertions, 37 deletions
diff --git a/sax/inc/xml2utf.hxx b/sax/inc/xml2utf.hxx
index 76cd10dab85f..25245b2a803a 100644
--- a/sax/inc/xml2utf.hxx
+++ b/sax/inc/xml2utf.hxx
@@ -71,7 +71,6 @@ private:
};
-
/*----------------------------------------
*
* XMLFile2UTFConverter
@@ -92,7 +91,6 @@ public:
void setEncoding( const OString &s ) { m_sEncoding = s; }
-
// @param nMaxToRead The number of chars, that should be read. Note that this is no exact number. There
// may be returned less or more bytes than ordered.
sal_Int32 readAndConvert( css::uno::Sequence<sal_Int8> &seq , sal_Int32 nMaxToRead )
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index be80a8005a5a..51c3aabb793b 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -313,7 +313,6 @@ extern "C"
}
-
// LocatorImpl
class LocatorImpl :
@@ -364,8 +363,6 @@ private:
};
-
-
SaxExpatParser::SaxExpatParser( )
{
m_pImpl = new SaxExpatParser_Impl;
@@ -722,7 +719,6 @@ void SaxExpatParser_Impl::parse( )
}
-
// The C-Callbacks
@@ -836,7 +832,6 @@ void SaxExpatParser_Impl::callbackNotationDecl(
}
-
bool SaxExpatParser_Impl::callbackExternalEntityRef(
XML_Parser parser, const XML_Char *context,
SAL_UNUSED_PARAMETER const XML_Char * /*base*/, const XML_Char *systemId,
diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx
index 68b44f6461cb..0c3e96564ab7 100644
--- a/sax/source/expatwrap/xml2utf.cxx
+++ b/sax/source/expatwrap/xml2utf.cxx
@@ -341,8 +341,6 @@ void XMLFile2UTFConverter::initializeDecoding()
}
-
-
// Text2UnicodeConverter
@@ -444,9 +442,6 @@ Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &
}
-
-
-
// Unicode2TextConverter
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index 3e2cbc983068..f0bf021e4157 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -1944,7 +1944,6 @@ const
// p q r s t u v w x y z
-
void ThreeByteToFourByte (const sal_Int8* pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, OUStringBuffer& sBuffer)
{
sal_Int32 nLen(nFullLen - nStart);
diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx
index f07097fd1bfd..c031db370fe0 100644
--- a/sax/test/sax/testwriter.cxx
+++ b/sax/test/sax/testwriter.cxx
@@ -136,7 +136,6 @@ private:
};
-
/*----------------------------------------
*
* Attributlist implementation
@@ -197,7 +196,6 @@ struct AttributeListImpl_impl
};
-
sal_Int16 AttributeListImpl::getLength() throw (RuntimeException)
{
return m_pImpl->vecAttribute.size();
@@ -265,14 +263,12 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw (Runtim
}
-
AttributeListImpl::AttributeListImpl()
{
m_pImpl = new AttributeListImpl_impl;
}
-
AttributeListImpl::~AttributeListImpl()
{
delete m_pImpl;
@@ -293,15 +289,6 @@ void AttributeListImpl::clear()
}
-
-
-
-
-
-
-
-
-
/**
* for external binding
*
@@ -331,7 +318,6 @@ Sequence<OUString> OSaxWriterTest_getSupportedServiceNames( ) throw ()
}
-
void OSaxWriterTest::testInvariant( const OUString& TestName,
const Reference < XInterface >& TestObject )
throw ( IllegalArgumentException, RuntimeException)
@@ -406,7 +392,6 @@ sal_Int32 OSaxWriterTest::test(
}
-
sal_Bool OSaxWriterTest::testPassed() throw (RuntimeException)
{
return m_seqErrors.getLength() == 0;
@@ -452,7 +437,6 @@ void OSaxWriterTest::writeParagraph(
}
-
void OSaxWriterTest::testSimple( const Reference< XExtendedDocumentHandler > &r )
{
OUString testParagraph = OUString(
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 3f7d21c85dd0..419ce7ea799b 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -304,7 +304,6 @@ struct AttributeListImpl_impl
};
-
sal_Int16 AttributeListImpl::getLength() throw (RuntimeException)
{
return (sal_Int16) m_pImpl->vecAttribute.size();
@@ -368,14 +367,12 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw (Runtim
}
-
AttributeListImpl::AttributeListImpl()
{
m_pImpl = new AttributeListImpl_impl;
}
-
AttributeListImpl::~AttributeListImpl()
{
delete m_pImpl;
@@ -395,7 +392,6 @@ void AttributeListImpl::clear()
}
-
// helper function for writing
// ensures that linebreaks are inserted
// when writing a long text.
@@ -425,7 +421,6 @@ void writeParagraphHelper(
}
-
// helper implementation for SAX-Writer
// writes data to a file
@@ -474,7 +469,6 @@ void OFileWriter::closeOutput()
}
-
// Needed to switch on solaris threads
#ifdef SOLARIS
extern "C" void ChangeGlobalInit();
@@ -525,7 +519,6 @@ int main (int argc, char **argv)
}
-
// parser demo
// read xml from a file and count elements
@@ -566,7 +559,6 @@ int main (int argc, char **argv)
}
-
// The SAX-Writer demo
x= xSMgr->createInstance("com.sun.star.xml.sax.Writer");