summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/sax/fshelper.hxx2
-rw-r--r--include/tools/b3dtrans.hxx2
-rw-r--r--include/tools/datetime.hxx2
-rw-r--r--include/tools/poly.hxx2
-rw-r--r--include/tools/stream.hxx4
-rw-r--r--include/tools/urlobj.hxx4
-rw-r--r--include/tools/zcodec.hxx4
7 files changed, 10 insertions, 10 deletions
diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx
index c393240d212a..6b3dc1e68318 100644
--- a/include/sax/fshelper.hxx
+++ b/include/sax/fshelper.hxx
@@ -211,7 +211,7 @@ public:
FastSerializerHelper* writeId(sal_Int32 tokenId);
- css::uno::Reference< css::io::XOutputStream > getOutputStream();
+ css::uno::Reference< css::io::XOutputStream > getOutputStream() const;
static FastAttributeList *createAttrList();
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