summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 09:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 13:21:13 +0100
commitdb378d64a9ca8675066fda31f3bd77dc37c52398 (patch)
treedc6c2c85b4996cff913c9f590eda19712bf9e309 /io
parent9ee60319c675087486907707c8a2b18b5c9dc9fc (diff)
loplugin:constmethod in vcl and stoc
Change-Id: I7c02eecc16ca7cf89d9f7021116b0226885dbf06 Reviewed-on: https://gerrit.libreoffice.org/44044 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r--io/source/TextOutputStream/TextOutputStream.cxx4
-rw-r--r--io/source/stm/streamhelper.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx
index c3705f336f5b..d33cc9d3b6c7 100644
--- a/io/source/TextOutputStream/TextOutputStream.cxx
+++ b/io/source/TextOutputStream/TextOutputStream.cxx
@@ -62,7 +62,7 @@ class OTextOutputStream : public WeakImplHelper< XTextOutputStream2, XServiceInf
Sequence<sal_Int8> implConvert( const OUString& rSource );
/// @throws IOException
- void checkOutputStream();
+ void checkOutputStream() const;
public:
OTextOutputStream();
@@ -202,7 +202,7 @@ void OTextOutputStream::closeOutput( )
}
-void OTextOutputStream::checkOutputStream()
+void OTextOutputStream::checkOutputStream() const
{
if (! mxStream.is() )
throw IOException("output stream is not initialized, you have to use setOutputStream first");
diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx
index 12eb3fdb76ab..c03673d6f4df 100644
--- a/io/source/stm/streamhelper.hxx
+++ b/io/source/stm/streamhelper.hxx
@@ -51,7 +51,7 @@ public:
private:
/// @throws css::io::BufferSizeExceededException
void resizeBuffer(sal_Int32 nMinSize);
- void checkInvariants() {
+ void checkInvariants() const {
assert( m_nBufferLen >= 0 );
assert( m_nOccupiedBuffer >= 0 );
assert( m_nOccupiedBuffer <= m_nBufferLen );