diff options
Diffstat (limited to 'io')
-rw-r--r-- | io/source/TextOutputStream/TextOutputStream.cxx | 4 | ||||
-rw-r--r-- | io/source/stm/streamhelper.hxx | 2 |
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 ); |