summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-03 11:47:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-03 15:14:00 +0200
commitf1ec3c675f1fcb04de564861c24f26b2bac4244c (patch)
treed324611d26b069d29cb5ca9308a997d6b0f853fa /include
parent6c8128532e5631702ed426ed664807d6e760e195 (diff)
loplugin:constmethod in basic
Change-Id: Ib2056ab8437e163c7ae42e3ab7a4a3f8b6cb80a2 Reviewed-on: https://gerrit.libreoffice.org/78547 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/basic/sbmeth.hxx2
-rw-r--r--include/basic/sbmod.hxx6
-rw-r--r--include/basic/sbstar.hxx8
-rw-r--r--include/basic/sbx.hxx2
4 files changed, 9 insertions, 9 deletions
diff --git a/include/basic/sbmeth.hxx b/include/basic/sbmeth.hxx
index 750542c8eff3..56770fa19fcc 100644
--- a/include/basic/sbmeth.hxx
+++ b/include/basic/sbmeth.hxx
@@ -56,7 +56,7 @@ public:
SbxArray* GetStatics();
void ClearStatics();
SbModule* GetModule() { return pMod; }
- BasicDebugFlags GetDebugFlags() { return nDebugFlags; }
+ BasicDebugFlags GetDebugFlags() const { return nDebugFlags; }
void SetDebugFlags( BasicDebugFlags n ) { nDebugFlags = n; }
void GetLineRange( sal_uInt16&, sal_uInt16& );
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx
index 8b9b78e9a07f..afc4897311b9 100644
--- a/include/basic/sbmod.hxx
+++ b/include/basic/sbmod.hxx
@@ -123,15 +123,15 @@ public:
bool HasExeCode();
bool IsVBACompat() const { return mbVBACompat;}
void SetVBACompat( bool bCompat );
- sal_Int32 GetModuleType() { return mnType; }
+ sal_Int32 GetModuleType() const { return mnType; }
void SetModuleType( sal_Int32 nType ) { mnType = nType; }
- bool isProxyModule() { return bIsProxyModule; }
+ bool isProxyModule() const { return bIsProxyModule; }
void AddVarName( const OUString& aName );
void RemoveVars();
css::uno::Reference< css::script::XInvocation > const & GetUnoModule();
bool createCOMWrapperForIface( css::uno::Any& o_rRetAny, SbClassModuleObject* pProxyClassModuleObject );
void GetCodeCompleteDataFromParse(CodeCompleteDataCache& aCache);
- const SbxArrayRef& GetMethods() { return pMethods;}
+ const SbxArrayRef& GetMethods() const { return pMethods;}
SbMethod* FindMethod( const OUString&, SbxClassType );
static OUString GetKeywordCase( const OUString& sKeyword );
};
diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx
index 9275701137be..7ff6a138123e 100644
--- a/include/basic/sbstar.hxx
+++ b/include/basic/sbstar.hxx
@@ -139,14 +139,14 @@ public:
static SbMethod* GetActiveMethod( sal_uInt16 nLevel = 0 );
static SbModule* GetActiveModule();
void SetVBAEnabled( bool bEnabled );
- bool isVBAEnabled();
+ bool isVBAEnabled() const;
- const SbxObjectRef& getRTL() { return pRtl; }
- bool IsDocBasic() { return bDocBasic; }
+ const SbxObjectRef& getRTL() const { return pRtl; }
+ bool IsDocBasic() const { return bDocBasic; }
SbxVariable* VBAFind( const OUString& rName, SbxClassType t );
bool GetUNOConstant( const OUString& rName, css::uno::Any& aOut );
void QuitAndExitApplication();
- bool IsQuitApplication() { return bQuit; };
+ bool IsQuitApplication() const { return bQuit; };
SbxObject* getVBAGlobals( );
diff --git a/include/basic/sbx.hxx b/include/basic/sbx.hxx
index 55b7fcaae8c3..8001afe14b11 100644
--- a/include/basic/sbx.hxx
+++ b/include/basic/sbx.hxx
@@ -178,7 +178,7 @@ public:
void AddDim32( sal_Int32, sal_Int32 );
void unoAddDim32( sal_Int32, sal_Int32 );
bool GetDim32( sal_Int32, sal_Int32&, sal_Int32& ) const;
- bool hasFixedSize() { return mbHasFixedSize; };
+ bool hasFixedSize() const { return mbHasFixedSize; };
void setHasFixedSize( bool bHasFixedSize ) {mbHasFixedSize = bHasFixedSize; };
};