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/awt | |
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/awt')
-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 |
4 files changed, 8 insertions, 8 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; |