diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-01 14:30:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 08:26:03 +0200 |
commit | 07c4aa4298f062cee1894b80ef82e76d5ffcf4c7 (patch) | |
tree | 23752b23ce6d21c209c9d178420dee86c48938de /svtools/source/control | |
parent | 48bf5a74186140760a734091a85e85d198e6fdfa (diff) |
loplugin:constfields in svtools
Change-Id: I91553f89d8f5ee42afa52d196bf86f8a92011850
Reviewed-on: https://gerrit.libreoffice.org/61186
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/control')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 14 | ||||
-rw-r--r-- | svtools/source/control/ctrltool.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/headbar.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/inettbc.cxx | 10 | ||||
-rw-r--r-- | svtools/source/control/scriptedtext.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/tabbar.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/valueimp.hxx | 4 |
7 files changed, 20 insertions, 20 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index a6dfa356f150..38a42a46567d 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -198,14 +198,14 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap ) class ImpLineListData { private: - BorderWidthImpl m_aWidthImpl; + BorderWidthImpl const m_aWidthImpl; - Color ( *m_pColor1Fn )( Color ); - Color ( *m_pColor2Fn )( Color ); - Color ( *m_pColorDistFn )( Color, Color ); + Color ( * const m_pColor1Fn )( Color ); + Color ( * const m_pColor2Fn )( Color ); + Color ( * const m_pColorDistFn )( Color, Color ); - long m_nMinWidth; - SvxBorderLineStyle m_nStyle; + long const m_nMinWidth; + SvxBorderLineStyle const m_nStyle; public: ImpLineListData( BorderWidthImpl aWidthImpl, SvxBorderLineStyle nStyle, @@ -358,7 +358,7 @@ namespace { class ApplyScale { - double mfScale; + double const mfScale; public: explicit ApplyScale( double fScale ) : mfScale(fScale) {} void operator() ( double& rVal ) diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx index 708f4ef8aa14..70a6ade68c71 100644 --- a/svtools/source/control/ctrltool.cxx +++ b/svtools/source/control/ctrltool.cxx @@ -105,7 +105,7 @@ class ImplFontListNameInfo friend class FontList; private: - OUString maSearchName; + OUString const maSearchName; ImplFontListFontMetric* mpFirst; FontListFontNameType mnType; diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx index 5c1f32d1cd95..352e79e13e87 100644 --- a/svtools/source/control/headbar.cxx +++ b/svtools/source/control/headbar.cxx @@ -35,8 +35,8 @@ public: sal_uInt16 mnId; HeaderBarItemBits mnBits; long mnSize; - OString maHelpId; - Image maImage; + OString const maHelpId; + Image const maImage; OUString maOutText; OUString maText; OUString maHelpText; diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index cb6586600939..5ac408552ba6 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -96,11 +96,11 @@ class SvtMatchContext_Impl: public salhelper::Thread std::vector<OUString> aCompletions; std::vector<OUString> aURLs; svtools::AsynchronLink aLink; - OUString aBaseURL; - OUString aText; + OUString const aBaseURL; + OUString const aText; VclPtr<SvtURLBox> pBox; - bool bOnlyDirectories; - bool bNoSelection; + bool const bOnlyDirectories; + bool const bNoSelection; osl::Mutex mutex_; bool stopped_; @@ -129,7 +129,7 @@ class MatchContext_Impl: public salhelper::Thread std::vector<OUString> aCompletions; std::vector<OUString> aURLs; svtools::AsynchronLink aLink; - OUString aText; + OUString const aText; URLBox* pBox; osl::Mutex mutex_; diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx index 16b90aedd764..400e10b10f9d 100644 --- a/svtools/source/control/scriptedtext.cxx +++ b/svtools/source/control/scriptedtext.cxx @@ -38,7 +38,7 @@ private: vcl::Font maLatinFont; /// The font for latin text portions. vcl::Font maAsianFont; /// The font for asian text portions. vcl::Font maCmplxFont; /// The font for complex text portions. - vcl::Font maDefltFont; /// The default font of the output device. + vcl::Font const maDefltFont; /// The default font of the output device. OUString maText; /// The text. vector< sal_Int32 > maPosVec; /// The start position of each text portion. diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 0d617312658d..cebb1172587a 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -198,14 +198,14 @@ public: struct ImplTabBarItem { - sal_uInt16 mnId; + sal_uInt16 const mnId; TabBarPageBits mnBits; OUString maText; OUString maHelpText; OUString maAuxiliaryText; // used in LayerTabBar for real layer name tools::Rectangle maRect; long mnWidth; - OString maHelpId; + OString const maHelpId; bool mbShort : 1; bool mbSelect : 1; bool mbProtect : 1; diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx index ee685d283afd..2fdd85590623 100644 --- a/svtools/source/control/valueimp.hxx +++ b/svtools/source/control/valueimp.hxx @@ -337,7 +337,7 @@ private: css::accessibility::XAccessibleEventListener > > mxEventListeners; ::osl::Mutex maMutex; ValueSetItem* mpParent; - bool mbIsTransientChildrenDisabled; + bool const mbIsTransientChildrenDisabled; static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId(); @@ -400,7 +400,7 @@ private: css::accessibility::XAccessibleEventListener > > mxEventListeners; ::osl::Mutex maMutex; SvtValueSetItem* mpParent; - bool mbIsTransientChildrenDisabled; + bool const mbIsTransientChildrenDisabled; static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId(); |