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

loplugin:constfields in svl

Change-Id: I18183c5c257cbe69bd067d4e74c50483ae683cf3
Reviewed-on: https://gerrit.libreoffice.org/61509
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst fcd2f1c8
...@@ -233,9 +233,9 @@ void Test::testNumberFormat() ...@@ -233,9 +233,9 @@ void Test::testNumberFormat()
}; };
struct { struct {
NfIndexTableOffset eStart; NfIndexTableOffset const eStart;
NfIndexTableOffset eEnd; NfIndexTableOffset const eEnd;
size_t nSize; size_t const nSize;
const char** pCodes; const char** pCodes;
} aTests[] = { } aTests[] = {
{ NF_NUMBER_START, NF_NUMBER_END, 6, pNumber }, { NF_NUMBER_START, NF_NUMBER_END, 6, pNumber },
...@@ -1101,7 +1101,7 @@ void Test::testIsNumberFormat() ...@@ -1101,7 +1101,7 @@ void Test::testIsNumberFormat()
struct NumberFormatData struct NumberFormatData
{ {
const char* pFormat; const char* pFormat;
bool bIsNumber; bool const bIsNumber;
} aTests[] = { } aTests[] = {
{ "20.3", true }, { "20.3", true },
{ "2", true }, { "2", true },
......
...@@ -118,9 +118,9 @@ Extension ::= SEQUENCE { ...@@ -118,9 +118,9 @@ Extension ::= SEQUENCE {
*/ */
typedef struct { typedef struct {
SECItem extnID; SECItem const extnID;
SECItem critical; SECItem const critical;
SECItem extnValue; SECItem const extnValue;
} Extension; } Extension;
/* /*
......
...@@ -67,10 +67,10 @@ using namespace ::com::sun::star; ...@@ -67,10 +67,10 @@ using namespace ::com::sun::star;
struct FSStorage_Impl struct FSStorage_Impl
{ {
OUString m_aURL; OUString const m_aURL;
::ucbhelper::Content m_aContent; ::ucbhelper::Content m_aContent;
sal_Int32 m_nMode; sal_Int32 const m_nMode;
std::unique_ptr<::comphelper::OInterfaceContainerHelper2> m_pListenersContainer; // list of listeners std::unique_ptr<::comphelper::OInterfaceContainerHelper2> m_pListenersContainer; // list of listeners
std::unique_ptr<::cppu::OTypeCollection> m_pTypeCollection; std::unique_ptr<::cppu::OTypeCollection> m_pTypeCollection;
......
...@@ -388,7 +388,7 @@ struct DoesStyleMatchStyleSheetPredicate final : public svl::StyleSheetPredicate ...@@ -388,7 +388,7 @@ struct DoesStyleMatchStyleSheetPredicate final : public svl::StyleSheetPredicate
return bMatches; return bMatches;
} }
SfxStyleSheetIterator *mIterator; SfxStyleSheetIterator * const mIterator;
}; };
} }
......
...@@ -51,7 +51,7 @@ typedef mdds::multi_type_matrix<matrix_trait> MatrixImplType; ...@@ -51,7 +51,7 @@ typedef mdds::multi_type_matrix<matrix_trait> MatrixImplType;
struct GridPrinter::Impl struct GridPrinter::Impl
{ {
MatrixImplType maMatrix; MatrixImplType maMatrix;
bool mbPrint; bool const mbPrint;
Impl( size_t nRows, size_t nCols, bool bPrint ) : Impl( size_t nRows, size_t nCols, bool bPrint ) :
maMatrix(nRows, nCols, OUString()), mbPrint(bPrint) {} maMatrix(nRows, nCols, OUString()), mbPrint(bPrint) {}
......
...@@ -1298,11 +1298,11 @@ void SfxUndoManager::EmptyActionsChanged() ...@@ -1298,11 +1298,11 @@ void SfxUndoManager::EmptyActionsChanged()
struct SfxListUndoAction::Impl struct SfxListUndoAction::Impl
{ {
sal_uInt16 mnId; sal_uInt16 const mnId;
ViewShellId mnViewShellId; ViewShellId const mnViewShellId;
OUString maComment; OUString maComment;
OUString maRepeatComment; OUString const maRepeatComment;
Impl( sal_uInt16 nId, ViewShellId nViewShellId, const OUString& rComment, const OUString& rRepeatComment ) : Impl( sal_uInt16 nId, ViewShellId nViewShellId, const OUString& rComment, const OUString& rRepeatComment ) :
mnId(nId), mnViewShellId(nViewShellId), maComment(rComment), maRepeatComment(rRepeatComment) {} mnId(nId), mnViewShellId(nViewShellId), maComment(rComment), maRepeatComment(rRepeatComment) {}
......
...@@ -33,7 +33,7 @@ namespace com { namespace sun { namespace star { namespace uno { ...@@ -33,7 +33,7 @@ namespace com { namespace sun { namespace star { namespace uno {
class PathService : public ::cppu::WeakImplHelper< css::frame::XConfigManager, css::lang::XServiceInfo > class PathService : public ::cppu::WeakImplHelper< css::frame::XConfigManager, css::lang::XServiceInfo >
{ {
SvtPathOptions m_aOptions; SvtPathOptions const m_aOptions;
public: public:
PathService() PathService()
......
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