diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-26 13:40:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-27 08:29:49 +0200 |
commit | 833c4965fc0941ea997852e3d99dcd7688e58c14 (patch) | |
tree | 8133da6da185cabb918870f8e61bb500f46c5cec /tools | |
parent | 64035391ebe8810520a214a3ae0aeb4c1b039819 (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 'tools')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 20 | ||||
-rw-r--r-- | tools/source/inet/inetmime.cxx | 14 | ||||
-rw-r--r-- | tools/source/reversemap/bestreversemap.cxx | 2 | ||||
-rw-r--r-- | tools/source/xml/XmlWriter.cxx | 2 |
4 files changed, 19 insertions, 19 deletions
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; }; |