Kaydet (Commit) 833c4965 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constfields in tools

Change-Id: I83499cfb49f7abdbf0629c60167d09a1352571ee
Reviewed-on: https://gerrit.libreoffice.org/60987
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 64035391
...@@ -77,16 +77,16 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC StringRangeEnumerator ...@@ -77,16 +77,16 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC StringRangeEnumerator
{ {
struct Range struct Range
{ {
sal_Int32 nFirst; sal_Int32 const nFirst;
sal_Int32 nLast; sal_Int32 const nLast;
Range( sal_Int32 i_nFirst, sal_Int32 i_nLast ) : nFirst( i_nFirst ), nLast( i_nLast ) {} Range( sal_Int32 i_nFirst, sal_Int32 i_nLast ) : nFirst( i_nFirst ), nLast( i_nLast ) {}
}; };
std::vector< StringRangeEnumerator::Range > maSequence; std::vector< StringRangeEnumerator::Range > maSequence;
sal_Int32 mnCount; sal_Int32 mnCount;
sal_Int32 mnMin; sal_Int32 const mnMin;
sal_Int32 mnMax; sal_Int32 const mnMax;
sal_Int32 mnOffset; sal_Int32 const mnOffset;
bool mbValidInput; bool mbValidInput;
bool setRange( const OUString& i_rNewRange ); bool setRange( const OUString& i_rNewRange );
......
...@@ -100,7 +100,7 @@ enum SvLockBytesStatFlag { SVSTATFLAG_DEFAULT }; ...@@ -100,7 +100,7 @@ enum SvLockBytesStatFlag { SVSTATFLAG_DEFAULT };
class TOOLS_DLLPUBLIC SvLockBytes: public virtual SvRefBase class TOOLS_DLLPUBLIC SvLockBytes: public virtual SvRefBase
{ {
SvStream * m_pStream; SvStream * m_pStream;
bool m_bOwner; bool const m_bOwner;
bool m_bSync; bool m_bSync;
protected: protected:
......
...@@ -38,7 +38,7 @@ class TOOLS_DLLPUBLIC VersionCompat ...@@ -38,7 +38,7 @@ class TOOLS_DLLPUBLIC VersionCompat
SvStream* mpRWStm; SvStream* mpRWStm;
sal_uInt32 mnCompatPos; sal_uInt32 mnCompatPos;
sal_uInt32 mnTotalSize; sal_uInt32 mnTotalSize;
StreamMode mnStmMode; StreamMode const mnStmMode;
sal_uInt16 mnVersion; sal_uInt16 mnVersion;
VersionCompat( const VersionCompat& ) = delete; VersionCompat( const VersionCompat& ) = delete;
......
...@@ -40,11 +40,11 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC ZCodec ...@@ -40,11 +40,11 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC ZCodec
bool mbStatus; bool mbStatus;
bool mbFinish; bool mbFinish;
sal_uInt8* mpInBuf; sal_uInt8* mpInBuf;
size_t mnInBufSize; size_t const mnInBufSize;
size_t mnInToRead; size_t mnInToRead;
SvStream* mpOStm; SvStream* mpOStm;
sal_uInt8* mpOutBuf; sal_uInt8* mpOutBuf;
size_t mnOutBufSize; size_t const mnOutBufSize;
sal_uInt32 mnCRC; sal_uInt32 mnCRC;
int mnCompressLevel; int mnCompressLevel;
......
...@@ -290,14 +290,14 @@ struct INetURLObject::SchemeInfo ...@@ -290,14 +290,14 @@ struct INetURLObject::SchemeInfo
{ {
sal_Char const * m_pScheme; sal_Char const * m_pScheme;
sal_Char const * m_pPrefix; sal_Char const * m_pPrefix;
bool m_bAuthority; bool const m_bAuthority;
bool m_bUser; bool const m_bUser;
bool m_bAuth; bool const m_bAuth;
bool m_bPassword; bool const m_bPassword;
bool m_bHost; bool const m_bHost;
bool m_bPort; bool const m_bPort;
bool m_bHierarchical; bool const m_bHierarchical;
bool m_bQuery; bool const m_bQuery;
}; };
struct INetURLObject::PrefixInfo struct INetURLObject::PrefixInfo
...@@ -306,8 +306,8 @@ struct INetURLObject::PrefixInfo ...@@ -306,8 +306,8 @@ struct INetURLObject::PrefixInfo
sal_Char const * m_pPrefix; sal_Char const * m_pPrefix;
sal_Char const * m_pTranslatedPrefix; sal_Char const * m_pTranslatedPrefix;
INetProtocol m_eScheme; INetProtocol const m_eScheme;
Kind m_eKind; Kind const m_eKind;
}; };
// static // static
......
...@@ -309,12 +309,12 @@ void appendISO88591(OUStringBuffer & rText, sal_Char const * pBegin, ...@@ -309,12 +309,12 @@ void appendISO88591(OUStringBuffer & rText, sal_Char const * pBegin,
struct Parameter struct Parameter
{ {
OString m_aAttribute; OString const m_aAttribute;
OString m_aCharset; OString const m_aCharset;
OString m_aLanguage; OString const m_aLanguage;
OString m_aValue; OString const m_aValue;
sal_uInt32 m_nSection; sal_uInt32 const m_nSection;
bool m_bExtended; bool const m_bExtended;
bool operator<(const Parameter& rhs) const // is used by std::list<Parameter>::sort bool operator<(const Parameter& rhs) const // is used by std::list<Parameter>::sort
{ {
...@@ -800,7 +800,7 @@ bool equalIgnoreCase(const sal_Char * pBegin1, ...@@ -800,7 +800,7 @@ bool equalIgnoreCase(const sal_Char * pBegin1,
struct EncodingEntry struct EncodingEntry
{ {
sal_Char const * m_aName; 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/ // The source for the following table is <ftp://ftp.iana.org/in-notes/iana/
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
struct Encoder struct Encoder
{ {
rtl_UnicodeToTextConverter m_aConverter; rtl_UnicodeToTextConverter const m_aConverter;
bool m_bCapable; bool m_bCapable;
const char *m_pEncoding; const char *m_pEncoding;
Encoder(rtl_TextEncoding nEncoding, const char *pEncoding) Encoder(rtl_TextEncoding nEncoding, const char *pEncoding)
......
...@@ -39,7 +39,7 @@ struct XmlWriterImpl ...@@ -39,7 +39,7 @@ struct XmlWriterImpl
{ {
} }
SvStream* mpStream; SvStream* const mpStream;
xmlTextWriterPtr mpWriter; xmlTextWriterPtr mpWriter;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment