diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-26 13:52:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-27 08:30:01 +0200 |
commit | 175834ce6a3ba707a6d34aa8de7351574381f481 (patch) | |
tree | a9349ce0604ac89b08ea3c3f3f56fa14c4b518f1 /toolkit/source | |
parent | 833c4965fc0941ea997852e3d99dcd7688e58c14 (diff) |
loplugin:constfields in toolkit
Change-Id: I26254acc84b1bfe71e4addbde51cb6a9ed52c981
Reviewed-on: https://gerrit.libreoffice.org/60990
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source')
-rw-r--r-- | toolkit/source/awt/asynccallback.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/awt/stylesettings.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 10 | ||||
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/geometrycontrolmodel.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrol.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolcontainer.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/helper/vclunohelper.cxx | 6 |
8 files changed, 14 insertions, 14 deletions
diff --git a/toolkit/source/awt/asynccallback.cxx b/toolkit/source/awt/asynccallback.cxx index e9cc75f5f462..c37b20930a71 100644 --- a/toolkit/source/awt/asynccallback.cxx +++ b/toolkit/source/awt/asynccallback.cxx @@ -57,7 +57,7 @@ private: xCallback( rCallback ), aData( rAny ) {} css::uno::Reference< css::awt::XCallback > xCallback; - css::uno::Any aData; + css::uno::Any const aData; }; DECL_STATIC_LINK( AsyncCallback, Notify_Impl, void*, void ); diff --git a/toolkit/source/awt/stylesettings.cxx b/toolkit/source/awt/stylesettings.cxx index 556fa8040371..22cce1247cc6 100644 --- a/toolkit/source/awt/stylesettings.cxx +++ b/toolkit/source/awt/stylesettings.cxx @@ -87,7 +87,7 @@ namespace toolkit } private: - SolarMutexGuard m_aGuard; + SolarMutexGuard const m_aGuard; }; diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 5e7c9e823c39..737bdc529554 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -415,7 +415,7 @@ public: delete this; } - sal_Int32 m_nPauseMilliseconds; + sal_Int32 const m_nPauseMilliseconds; }; class VCLXToolkitMutexHelper @@ -439,8 +439,8 @@ class VCLXToolkit : public VCLXToolkitMutexHelper, ::comphelper::OInterfaceContainerHelper2 m_aTopWindowListeners; ::comphelper::OInterfaceContainerHelper2 m_aKeyHandlers; ::comphelper::OInterfaceContainerHelper2 m_aFocusListeners; - ::Link<VclSimpleEvent&,void> m_aEventListenerLink; - ::Link<VclWindowEvent&,bool> m_aKeyListenerLink; + ::Link<VclSimpleEvent&,void> const m_aEventListenerLink; + ::Link<VclWindowEvent&,bool> const m_aKeyListenerLink; bool m_bEventListener; bool m_bKeyListener; @@ -801,9 +801,9 @@ WindowType ImplGetComponentType( const OUString& rServiceName ) struct MessageBoxTypeInfo { - css::awt::MessageBoxType eType; + css::awt::MessageBoxType const eType; const sal_Char *pName; - sal_Int32 nLen; + sal_Int32 const nLen; }; static const MessageBoxTypeInfo aMessageBoxTypeInfo[] = diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index 9edf3ed9086c..eb3df832c972 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -118,7 +118,7 @@ public: bool mbDisposing : 1; bool mbDesignMode : 1; bool mbSynthesizingVCLEvent : 1; - bool mbWithDefaultProps : 1; + bool const mbWithDefaultProps : 1; sal_uLong mnListenerLockLevel; sal_Int16 mnWritingMode; diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx index d8f9045668fc..5fe1a2194d84 100644 --- a/toolkit/source/controls/geometrycontrolmodel.cxx +++ b/toolkit/source/controls/geometrycontrolmodel.cxx @@ -585,7 +585,7 @@ struct Int32Equal { - sal_Int32 m_nCompare; + sal_Int32 const m_nCompare; explicit Int32Equal( sal_Int32 _nCompare ) : m_nCompare( _nCompare ) { } bool operator()( sal_Int32 _nLHS ) diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx index 011aa72e08df..9432f67b78ec 100644 --- a/toolkit/source/controls/unocontrol.cxx +++ b/toolkit/source/controls/unocontrol.cxx @@ -60,7 +60,7 @@ using ::com::sun::star::accessibility::XAccessible; struct LanguageDependentProp { const char* pPropName; - sal_Int32 nPropNameLength; + sal_Int32 const nPropNameLength; }; static const LanguageDependentProp aLanguageDependentProp[] = diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index b704b0dd01cb..7311a184ed48 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -48,7 +48,7 @@ using namespace ::com::sun::star; struct UnoControlHolder { uno::Reference< awt::XControl > mxControl; - OUString msName; + OUString const msName; public: UnoControlHolder( const OUString& rName, const uno::Reference< awt::XControl > & rControl ) diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx index 904e520fd0ea..d7dfe76e162e 100644 --- a/toolkit/source/helper/vclunohelper.cxx +++ b/toolkit/source/helper/vclunohelper.cxx @@ -360,9 +360,9 @@ namespace { static struct _unit_table { - FieldUnit eFieldUnit; - sal_Int16 nMeasurementUnit; - sal_Int16 nFieldToMeasureFactor; + FieldUnit const eFieldUnit; + sal_Int16 const nMeasurementUnit; + sal_Int16 const nFieldToMeasureFactor; } aUnits[] = { { FUNIT_NONE, -1 , -1}, { FUNIT_MM, MeasureUnit::MM, 1 }, // must precede MM_10TH |