summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--tools/source/fsys/urlobj.cxx20
-rw-r--r--tools/source/inet/inetmime.cxx14
-rw-r--r--tools/source/reversemap/bestreversemap.cxx2
-rw-r--r--tools/source/xml/XmlWriter.cxx2
8 files changed, 28 insertions, 28 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;
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index f024fec558bf..6a53e29d9d03 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -290,14 +290,14 @@ struct INetURLObject::SchemeInfo
{
sal_Char const * m_pScheme;
sal_Char const * m_pPrefix;
- bool m_bAuthority;
- bool m_bUser;
- bool m_bAuth;
- bool m_bPassword;
- bool m_bHost;
- bool m_bPort;
- bool m_bHierarchical;
- bool m_bQuery;
+ bool const m_bAuthority;
+ bool const m_bUser;
+ bool const m_bAuth;
+ bool const m_bPassword;
+ bool const m_bHost;
+ bool const m_bPort;
+ bool const m_bHierarchical;
+ bool const m_bQuery;
};
struct INetURLObject::PrefixInfo
@@ -306,8 +306,8 @@ struct INetURLObject::PrefixInfo
sal_Char const * m_pPrefix;
sal_Char const * m_pTranslatedPrefix;
- INetProtocol m_eScheme;
- Kind m_eKind;
+ INetProtocol const m_eScheme;
+ Kind const m_eKind;
};
// static
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 1f8cb5196d3e..d2f2f4baec6a 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -309,12 +309,12 @@ void appendISO88591(OUStringBuffer & rText, sal_Char const * pBegin,
struct Parameter
{
- OString m_aAttribute;
- OString m_aCharset;
- OString m_aLanguage;
- OString m_aValue;
- sal_uInt32 m_nSection;
- bool m_bExtended;
+ OString const m_aAttribute;
+ OString const m_aCharset;
+ OString const m_aLanguage;
+ OString const m_aValue;
+ sal_uInt32 const m_nSection;
+ bool const m_bExtended;
bool operator<(const Parameter& rhs) const // is used by std::list<Parameter>::sort
{
@@ -800,7 +800,7 @@ bool equalIgnoreCase(const sal_Char * pBegin1,
struct EncodingEntry
{
sal_Char const * m_aName;
- rtl_TextEncoding m_eEncoding;
+ rtl_TextEncoding const m_eEncoding;
};
// The source for the following table is <ftp://ftp.iana.org/in-notes/iana/
diff --git a/tools/source/reversemap/bestreversemap.cxx b/tools/source/reversemap/bestreversemap.cxx
index 63fbd2b1cb90..90679654cbbe 100644
--- a/tools/source/reversemap/bestreversemap.cxx
+++ b/tools/source/reversemap/bestreversemap.cxx
@@ -15,7 +15,7 @@
struct Encoder
{
- rtl_UnicodeToTextConverter m_aConverter;
+ rtl_UnicodeToTextConverter const m_aConverter;
bool m_bCapable;
const char *m_pEncoding;
Encoder(rtl_TextEncoding nEncoding, const char *pEncoding)
diff --git a/tools/source/xml/XmlWriter.cxx b/tools/source/xml/XmlWriter.cxx
index 8895e92064db..58c4a26f2cb5 100644
--- a/tools/source/xml/XmlWriter.cxx
+++ b/tools/source/xml/XmlWriter.cxx
@@ -39,7 +39,7 @@ struct XmlWriterImpl
{
}
- SvStream* mpStream;
+ SvStream* const mpStream;
xmlTextWriterPtr mpWriter;
};