summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-26 13:40:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-27 08:29:49 +0200
commit833c4965fc0941ea997852e3d99dcd7688e58c14 (patch)
tree8133da6da185cabb918870f8e61bb500f46c5cec /include/tools
parent64035391ebe8810520a214a3ae0aeb4c1b039819 (diff)
loplugin:constfields in tools
Change-Id: I83499cfb49f7abdbf0629c60167d09a1352571ee Reviewed-on: https://gerrit.libreoffice.org/60987 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/multisel.hxx10
-rw-r--r--include/tools/stream.hxx2
-rw-r--r--include/tools/vcompat.hxx2
-rw-r--r--include/tools/zcodec.hxx4
4 files changed, 9 insertions, 9 deletions
diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx
index 3e06a3dce239..feb96abd2760 100644
--- a/include/tools/multisel.hxx
+++ b/include/tools/multisel.hxx
@@ -77,16 +77,16 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC StringRangeEnumerator
{
struct Range
{
- sal_Int32 nFirst;
- sal_Int32 nLast;
+ sal_Int32 const nFirst;
+ sal_Int32 const nLast;
Range( sal_Int32 i_nFirst, sal_Int32 i_nLast ) : nFirst( i_nFirst ), nLast( i_nLast ) {}
};
std::vector< StringRangeEnumerator::Range > maSequence;
sal_Int32 mnCount;
- sal_Int32 mnMin;
- sal_Int32 mnMax;
- sal_Int32 mnOffset;
+ sal_Int32 const mnMin;
+ sal_Int32 const mnMax;
+ sal_Int32 const mnOffset;
bool mbValidInput;
bool setRange( const OUString& i_rNewRange );
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index ce6db9ac4217..86a29f8093ff 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -100,7 +100,7 @@ enum SvLockBytesStatFlag { SVSTATFLAG_DEFAULT };
class TOOLS_DLLPUBLIC SvLockBytes: public virtual SvRefBase
{
SvStream * m_pStream;
- bool m_bOwner;
+ bool const m_bOwner;
bool m_bSync;
protected:
diff --git a/include/tools/vcompat.hxx b/include/tools/vcompat.hxx
index 85e3b1d44240..ba4692f663e2 100644
--- a/include/tools/vcompat.hxx
+++ b/include/tools/vcompat.hxx
@@ -38,7 +38,7 @@ class TOOLS_DLLPUBLIC VersionCompat
SvStream* mpRWStm;
sal_uInt32 mnCompatPos;
sal_uInt32 mnTotalSize;
- StreamMode mnStmMode;
+ StreamMode const mnStmMode;
sal_uInt16 mnVersion;
VersionCompat( const VersionCompat& ) = delete;
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx
index 57af7c50c2a1..9f26d263adba 100644
--- a/include/tools/zcodec.hxx
+++ b/include/tools/zcodec.hxx
@@ -40,11 +40,11 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC ZCodec
bool mbStatus;
bool mbFinish;
sal_uInt8* mpInBuf;
- size_t mnInBufSize;
+ size_t const mnInBufSize;
size_t mnInToRead;
SvStream* mpOStm;
sal_uInt8* mpOutBuf;
- size_t mnOutBufSize;
+ size_t const mnOutBufSize;
sal_uInt32 mnCRC;
int mnCompressLevel;