summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-24 14:07:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-25 10:56:03 +0200
commit83fd71e041f2c0520c4cc213e238c7f3c674c5a3 (patch)
tree5812c9db1d74548128c27bf2c1c44ec7aa5a79f2 /sax
parente46d27a692f43192ba29f03c473f43bb16c1444f (diff)
loplugin:constmethod in tools,sax,UnoControls
Change-Id: Ie05e44e2a4019e2549843961ebfa04fef7b7aeb4 Reviewed-on: https://gerrit.libreoffice.org/43767 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/inc/xml2utf.hxx2
-rw-r--r--sax/source/fastparser/fastparser.cxx2
-rw-r--r--sax/source/tools/fastserializer.cxx2
-rw-r--r--sax/source/tools/fastserializer.hxx2
-rw-r--r--sax/source/tools/fshelper.cxx2
5 files changed, 5 insertions, 5 deletions
diff --git a/sax/inc/xml2utf.hxx b/sax/inc/xml2utf.hxx
index 44e4b461293e..0a26c1f81482 100644
--- a/sax/inc/xml2utf.hxx
+++ b/sax/inc/xml2utf.hxx
@@ -32,7 +32,7 @@ public:
~Text2UnicodeConverter();
css::uno::Sequence < sal_Unicode > convert( const css::uno::Sequence<sal_Int8> & );
- bool canContinue() { return m_bCanContinue; }
+ bool canContinue() const { return m_bCanContinue; }
private:
void init( rtl_TextEncoding encoding );
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index abd78e2d120d..507d40208928 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -332,7 +332,7 @@ public:
void dispose() { mpParser = nullptr; }
/// @throws RuntimeException
- void checkDispose() { if( !mpParser ) throw DisposedException(); }
+ void checkDispose() const { if( !mpParser ) throw DisposedException(); }
//XLocator
virtual sal_Int32 SAL_CALL getColumnNumber() override;
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index 7c1e3c77c027..a0ae255b36eb 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -377,7 +377,7 @@ namespace sax_fastparser {
writeBytes(sSlashAndClosingBracket, N_CHARS(sSlashAndClosingBracket));
}
- css::uno::Reference< css::io::XOutputStream > FastSaxSerializer::getOutputStream()
+ css::uno::Reference< css::io::XOutputStream > FastSaxSerializer::getOutputStream() const
{
return maCachedOutputStream.getOutputStream();
}
diff --git a/sax/source/tools/fastserializer.hxx b/sax/source/tools/fastserializer.hxx
index 803eaa0cc991..74e5de223e10 100644
--- a/sax/source/tools/fastserializer.hxx
+++ b/sax/source/tools/fastserializer.hxx
@@ -51,7 +51,7 @@ public:
explicit FastSaxSerializer(const css::uno::Reference< css::io::XOutputStream >& xOutputStream);
~FastSaxSerializer();
- css::uno::Reference< css::io::XOutputStream > getOutputStream();
+ css::uno::Reference< css::io::XOutputStream > getOutputStream() const;
/// called by FSHelper to put data in for writeTokenValueList
TokenValueList& getTokenValueList() { return maTokenValues; }
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx
index 3875f54df6ca..0b71769a0fed 100644
--- a/sax/source/tools/fshelper.cxx
+++ b/sax/source/tools/fshelper.cxx
@@ -125,7 +125,7 @@ FastSerializerHelper* FastSerializerHelper::writeId(sal_Int32 tokenId)
return this;
}
-css::uno::Reference< css::io::XOutputStream > FastSerializerHelper::getOutputStream()
+css::uno::Reference< css::io::XOutputStream > FastSerializerHelper::getOutputStream() const
{
return mpSerializer->getOutputStream();
}