diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-08 16:14:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-09 11:28:02 +0200 |
commit | 383a4f883d4a2932167695c761611b998f773f0e (patch) | |
tree | a5aa8447adf1bce6252f3604cccb4a5b2e742fa7 /scripting | |
parent | 565746cf861c407ae222b2284d8525b4e9a62d94 (diff) |
loplugin:constfields in scripting
Change-Id: I1484d920649817680f70de4ca00a3d46e1faf42a
Reviewed-on: https://gerrit.libreoffice.org/61554
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/baslibnode.hxx | 8 | ||||
-rw-r--r-- | scripting/source/basprov/basmethnode.hxx | 4 | ||||
-rw-r--r-- | scripting/source/basprov/basmodnode.hxx | 4 | ||||
-rw-r--r-- | scripting/source/basprov/basscript.hxx | 2 | ||||
-rw-r--r-- | scripting/source/dlgprov/dlgevtatt.cxx | 4 | ||||
-rw-r--r-- | scripting/source/dlgprov/dlgevtatt.hxx | 4 | ||||
-rw-r--r-- | scripting/source/provider/ProviderCache.hxx | 2 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 2 | ||||
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 8 |
9 files changed, 19 insertions, 19 deletions
diff --git a/scripting/source/basprov/baslibnode.hxx b/scripting/source/basprov/baslibnode.hxx index c23dcaa8a475..fc9e9e2efeaf 100644 --- a/scripting/source/basprov/baslibnode.hxx +++ b/scripting/source/basprov/baslibnode.hxx @@ -44,12 +44,12 @@ namespace basprov { private: css::uno::Reference< css::uno::XComponentContext > m_xContext; - OUString m_sScriptingContext; - BasicManager* m_pBasicManager; + OUString const m_sScriptingContext; + BasicManager* const m_pBasicManager; css::uno::Reference< css::script::XLibraryContainer > m_xLibContainer; css::uno::Reference< css::container::XNameContainer > m_xLibrary; - OUString m_sLibName; - bool m_bIsAppScript; + OUString const m_sLibName; + bool const m_bIsAppScript; public: BasicLibraryNodeImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext, diff --git a/scripting/source/basprov/basmethnode.hxx b/scripting/source/basprov/basmethnode.hxx index a66a0fb007c2..9949620e2ca8 100644 --- a/scripting/source/basprov/basmethnode.hxx +++ b/scripting/source/basprov/basmethnode.hxx @@ -53,9 +53,9 @@ namespace basprov { private: css::uno::Reference< css::uno::XComponentContext > m_xContext; - OUString m_sScriptingContext; + OUString const m_sScriptingContext; SbMethod* m_pMethod; - bool m_bIsAppScript; + bool const m_bIsAppScript; // properties OUString m_sURI; diff --git a/scripting/source/basprov/basmodnode.hxx b/scripting/source/basprov/basmodnode.hxx index e317df2272f1..569d218fab5e 100644 --- a/scripting/source/basprov/basmodnode.hxx +++ b/scripting/source/basprov/basmodnode.hxx @@ -43,9 +43,9 @@ namespace basprov { private: css::uno::Reference< css::uno::XComponentContext > m_xContext; - OUString m_sScriptingContext; + OUString const m_sScriptingContext; SbModule* m_pModule; - bool m_bIsAppScript; + bool const m_bIsAppScript; public: BasicModuleNodeImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext, diff --git a/scripting/source/basprov/basscript.hxx b/scripting/source/basprov/basscript.hxx index 29244c4e9316..62a2d61e66da 100644 --- a/scripting/source/basprov/basscript.hxx +++ b/scripting/source/basprov/basscript.hxx @@ -51,7 +51,7 @@ namespace basprov { private: SbMethodRef m_xMethod; - OUString m_funcName; + OUString const m_funcName; BasicManager* m_documentBasicManager; css::uno::Reference< css::document::XScriptInvocationContext > m_xDocumentScriptContext; diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index 4bb940f82167..cd174d88ec3c 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -81,7 +81,7 @@ namespace dlgprov Reference< awt::XControl > m_xControl; Reference< XInterface > m_xHandler; Reference< beans::XIntrospectionAccess > m_xIntrospectionAccess; - bool m_bDialogProviderMode; + bool const m_bDialogProviderMode; virtual void firing_impl( const script::ScriptEvent& aScriptEvent, uno::Any* pRet ) override; @@ -99,7 +99,7 @@ namespace dlgprov { protected: OUString msDialogCodeName; - OUString msDialogLibName; + OUString const msDialogLibName; Reference< script::XScriptListener > mxListener; virtual void firing_impl( const script::ScriptEvent& aScriptEvent, uno::Any* pRet ) override; public: diff --git a/scripting/source/dlgprov/dlgevtatt.hxx b/scripting/source/dlgprov/dlgevtatt.hxx index 2c92d3220fef..f2e33d811c00 100644 --- a/scripting/source/dlgprov/dlgevtatt.hxx +++ b/scripting/source/dlgprov/dlgevtatt.hxx @@ -85,8 +85,8 @@ namespace dlgprov { private: css::uno::Reference< css::script::XScriptListener > m_xScriptListener; - OUString m_sScriptType; - OUString m_sScriptCode; + OUString const m_sScriptType; + OUString const m_sScriptCode; void firing_impl( const css::script::AllEventObject& Event, css::uno::Any* pRet ); diff --git a/scripting/source/provider/ProviderCache.hxx b/scripting/source/provider/ProviderCache.hxx index d6a950beee40..bd13ec9545da 100644 --- a/scripting/source/provider/ProviderCache.hxx +++ b/scripting/source/provider/ProviderCache.hxx @@ -83,7 +83,7 @@ private: css::uno::Sequence< OUString > m_sBlackList; ProviderDetails_hash m_hProviderDetailsCache; osl::Mutex m_mutex; - css::uno::Sequence< css::uno::Any > m_Sctx; + css::uno::Sequence< css::uno::Any > const m_Sctx; css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::lang::XMultiComponentFactory > m_xMgr; diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 9e29229e13e0..f7bc21f9b8fb 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1307,7 +1307,7 @@ void StringResourcePersistenceImpl::implWriteLocaleBinary class BinaryInput { - Sequence< sal_Int8 > m_aData; + Sequence< sal_Int8 > const m_aData; Reference< XComponentContext > m_xContext; const sal_Int8* m_pData; diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 3ac632e8c039..86d941df9e74 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -178,8 +178,8 @@ typedef std::unordered_map< struct TranslatePropMap { - OUString sEventInfo; //OO event name - TranslateInfo aTransInfo; + OUString const sEventInfo; //OO event name + TranslateInfo const aTransInfo; }; static bool ApproveAll(const ScriptEvent& evt, void const * pPara); //allow all types of controls to execute the event @@ -190,7 +190,7 @@ static bool DenyMouseDrag(const ScriptEvent& evt, void const * pPara); //used fo struct TypeList { uno::Type const * pTypeList; - int nListLength; + int const nListLength; }; Type const typeXFixedText = cppu::UnoType<awt::XFixedText>::get(); @@ -296,7 +296,7 @@ public: private: Reference< XComponentContext > m_xCtx; Reference< XInterface > m_xControl; - bool m_bDispose; + bool const m_bDispose; }; static bool |