diff options
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/b3dtrans.hxx | 2 | ||||
-rw-r--r-- | include/tools/datetime.hxx | 2 | ||||
-rw-r--r-- | include/tools/poly.hxx | 2 | ||||
-rw-r--r-- | include/tools/stream.hxx | 4 | ||||
-rw-r--r-- | include/tools/urlobj.hxx | 4 | ||||
-rw-r--r-- | include/tools/zcodec.hxx | 4 |
6 files changed, 9 insertions, 9 deletions
diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx index 64d273bcbfc0..97b353f0c941 100644 --- a/include/tools/b3dtrans.hxx +++ b/include/tools/b3dtrans.hxx @@ -99,7 +99,7 @@ public: // Texture // aspect ratio accessors and the defined method of keeping defined aspect ratio - double GetRatio() { return mfRatio; } + double GetRatio() const { return mfRatio; } void SetRatio(double fNew); // Parameters of ViewportTransformation diff --git a/include/tools/datetime.hxx b/include/tools/datetime.hxx index fd48e2314c27..02729e6a0e1a 100644 --- a/include/tools/datetime.hxx +++ b/include/tools/datetime.hxx @@ -98,7 +98,7 @@ public: DateTime& operator =( const DateTime& rDateTime ); DateTime& operator =( const css::util::DateTime& rUDateTime ); - void GetWin32FileDateTime( sal_uInt32 & rLower, sal_uInt32 & rUpper ); + void GetWin32FileDateTime( sal_uInt32 & rLower, sal_uInt32 & rUpper ) const; static DateTime CreateFromWin32FileDateTime( sal_uInt32 rLower, sal_uInt32 rUpper ); /// Creates DateTime given a unix time, which is the number of seconds diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index 044bafe3f3e2..223f2c1e6731 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -119,7 +119,7 @@ public: tools::Rectangle GetBoundRect() const; bool IsInside( const Point& rPt ) const; - double CalcDistance( sal_uInt16 nPt1, sal_uInt16 nPt2 ); + double CalcDistance( sal_uInt16 nPt1, sal_uInt16 nPt2 ) const; void Clip( const tools::Rectangle& rRect ); void Optimize( PolyOptimizeFlags nOptimizeFlags ); diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index b4d1be9517bf..00aa872f53e3 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -193,7 +193,7 @@ protected: // encrypt and write in blocks std::size_t CryptAndWriteBuffer( const void* pStart, std::size_t nLen ); - bool EncryptBuffer( void* pStart, std::size_t nLen ); + bool EncryptBuffer( void* pStart, std::size_t nLen ) const; public: SvStream(); @@ -383,7 +383,7 @@ public: bool IsWritable() const { return m_isWritable; } StreamMode GetStreamMode() const { return m_eStreamMode; } - sal_Int32 GetVersion() { return m_nVersion; } + sal_Int32 GetVersion() const { return m_nVersion; } void SetVersion( sal_Int32 n ) { m_nVersion = n; } friend SvStream& operator<<( SvStream& rStr, SvStrPtr f ); // for Manips diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index cdbede709e29..e5a4e5922ef3 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -441,7 +441,7 @@ public: { return decode(m_aHost, eMechanism, eCharset); } OUString GetHostPort(DecodeMechanism eMechanism = DecodeMechanism::ToIUri, - rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8); + rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8) const; sal_uInt32 GetPort() const; @@ -790,7 +790,7 @@ public: const; // Data URLs: - std::unique_ptr<SvMemoryStream> getData(); + std::unique_ptr<SvMemoryStream> getData() const; // Coding: diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx index f12ee4a62830..f5dd99ac7acb 100644 --- a/include/tools/zcodec.hxx +++ b/include/tools/zcodec.hxx @@ -73,9 +73,9 @@ public: long ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize ); void SetBreak( size_t ); - size_t GetBreak(); + size_t GetBreak() const; void SetCRC( sal_uInt32 nCurrentCRC ); - sal_uInt32 GetCRC() { return mnCRC;} + sal_uInt32 GetCRC() const { return mnCRC;} }; #endif |