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

loplugin:constfields in scripting

Change-Id: I1484d920649817680f70de4ca00a3d46e1faf42a
Reviewed-on: https://gerrit.libreoffice.org/61554
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 565746cf
...@@ -44,12 +44,12 @@ namespace basprov ...@@ -44,12 +44,12 @@ namespace basprov
{ {
private: private:
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
OUString m_sScriptingContext; OUString const m_sScriptingContext;
BasicManager* m_pBasicManager; BasicManager* const m_pBasicManager;
css::uno::Reference< css::script::XLibraryContainer > m_xLibContainer; css::uno::Reference< css::script::XLibraryContainer > m_xLibContainer;
css::uno::Reference< css::container::XNameContainer > m_xLibrary; css::uno::Reference< css::container::XNameContainer > m_xLibrary;
OUString m_sLibName; OUString const m_sLibName;
bool m_bIsAppScript; bool const m_bIsAppScript;
public: public:
BasicLibraryNodeImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext, BasicLibraryNodeImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
......
...@@ -53,9 +53,9 @@ namespace basprov ...@@ -53,9 +53,9 @@ namespace basprov
{ {
private: private:
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
OUString m_sScriptingContext; OUString const m_sScriptingContext;
SbMethod* m_pMethod; SbMethod* m_pMethod;
bool m_bIsAppScript; bool const m_bIsAppScript;
// properties // properties
OUString m_sURI; OUString m_sURI;
......
...@@ -43,9 +43,9 @@ namespace basprov ...@@ -43,9 +43,9 @@ namespace basprov
{ {
private: private:
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
OUString m_sScriptingContext; OUString const m_sScriptingContext;
SbModule* m_pModule; SbModule* m_pModule;
bool m_bIsAppScript; bool const m_bIsAppScript;
public: public:
BasicModuleNodeImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext, BasicModuleNodeImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
......
...@@ -51,7 +51,7 @@ namespace basprov ...@@ -51,7 +51,7 @@ namespace basprov
{ {
private: private:
SbMethodRef m_xMethod; SbMethodRef m_xMethod;
OUString m_funcName; OUString const m_funcName;
BasicManager* m_documentBasicManager; BasicManager* m_documentBasicManager;
css::uno::Reference< css::document::XScriptInvocationContext > css::uno::Reference< css::document::XScriptInvocationContext >
m_xDocumentScriptContext; m_xDocumentScriptContext;
......
...@@ -81,7 +81,7 @@ namespace dlgprov ...@@ -81,7 +81,7 @@ namespace dlgprov
Reference< awt::XControl > m_xControl; Reference< awt::XControl > m_xControl;
Reference< XInterface > m_xHandler; Reference< XInterface > m_xHandler;
Reference< beans::XIntrospectionAccess > m_xIntrospectionAccess; Reference< beans::XIntrospectionAccess > m_xIntrospectionAccess;
bool m_bDialogProviderMode; bool const m_bDialogProviderMode;
virtual void firing_impl( const script::ScriptEvent& aScriptEvent, uno::Any* pRet ) override; virtual void firing_impl( const script::ScriptEvent& aScriptEvent, uno::Any* pRet ) override;
...@@ -99,7 +99,7 @@ namespace dlgprov ...@@ -99,7 +99,7 @@ namespace dlgprov
{ {
protected: protected:
OUString msDialogCodeName; OUString msDialogCodeName;
OUString msDialogLibName; OUString const msDialogLibName;
Reference< script::XScriptListener > mxListener; Reference< script::XScriptListener > mxListener;
virtual void firing_impl( const script::ScriptEvent& aScriptEvent, uno::Any* pRet ) override; virtual void firing_impl( const script::ScriptEvent& aScriptEvent, uno::Any* pRet ) override;
public: public:
......
...@@ -85,8 +85,8 @@ namespace dlgprov ...@@ -85,8 +85,8 @@ namespace dlgprov
{ {
private: private:
css::uno::Reference< css::script::XScriptListener > m_xScriptListener; css::uno::Reference< css::script::XScriptListener > m_xScriptListener;
OUString m_sScriptType; OUString const m_sScriptType;
OUString m_sScriptCode; OUString const m_sScriptCode;
void firing_impl( const css::script::AllEventObject& Event, css::uno::Any* pRet ); void firing_impl( const css::script::AllEventObject& Event, css::uno::Any* pRet );
......
...@@ -83,7 +83,7 @@ private: ...@@ -83,7 +83,7 @@ private:
css::uno::Sequence< OUString > m_sBlackList; css::uno::Sequence< OUString > m_sBlackList;
ProviderDetails_hash m_hProviderDetailsCache; ProviderDetails_hash m_hProviderDetailsCache;
osl::Mutex m_mutex; 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::uno::XComponentContext > m_xContext;
css::uno::Reference< css::lang::XMultiComponentFactory > m_xMgr; css::uno::Reference< css::lang::XMultiComponentFactory > m_xMgr;
......
...@@ -1307,7 +1307,7 @@ void StringResourcePersistenceImpl::implWriteLocaleBinary ...@@ -1307,7 +1307,7 @@ void StringResourcePersistenceImpl::implWriteLocaleBinary
class BinaryInput class BinaryInput
{ {
Sequence< sal_Int8 > m_aData; Sequence< sal_Int8 > const m_aData;
Reference< XComponentContext > m_xContext; Reference< XComponentContext > m_xContext;
const sal_Int8* m_pData; const sal_Int8* m_pData;
......
...@@ -178,8 +178,8 @@ typedef std::unordered_map< ...@@ -178,8 +178,8 @@ typedef std::unordered_map<
struct TranslatePropMap struct TranslatePropMap
{ {
OUString sEventInfo; //OO event name OUString const sEventInfo; //OO event name
TranslateInfo aTransInfo; TranslateInfo const aTransInfo;
}; };
static bool ApproveAll(const ScriptEvent& evt, void const * pPara); //allow all types of controls to execute the event 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 ...@@ -190,7 +190,7 @@ static bool DenyMouseDrag(const ScriptEvent& evt, void const * pPara); //used fo
struct TypeList struct TypeList
{ {
uno::Type const * pTypeList; uno::Type const * pTypeList;
int nListLength; int const nListLength;
}; };
Type const typeXFixedText = cppu::UnoType<awt::XFixedText>::get(); Type const typeXFixedText = cppu::UnoType<awt::XFixedText>::get();
...@@ -296,7 +296,7 @@ public: ...@@ -296,7 +296,7 @@ public:
private: private:
Reference< XComponentContext > m_xCtx; Reference< XComponentContext > m_xCtx;
Reference< XInterface > m_xControl; Reference< XInterface > m_xControl;
bool m_bDispose; bool const m_bDispose;
}; };
static bool static bool
......
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