diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-03 11:47:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-03 15:14:00 +0200 |
commit | f1ec3c675f1fcb04de564861c24f26b2bac4244c (patch) | |
tree | d324611d26b069d29cb5ca9308a997d6b0f853fa /basic/source/inc/scanner.hxx | |
parent | Resolves: tdf#127120 double selection in B&N dialog (diff) | |
download | core-f1ec3c675f1fcb04de564861c24f26b2bac4244c.tar.gz core-f1ec3c675f1fcb04de564861c24f26b2bac4244c.zip |
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 'basic/source/inc/scanner.hxx')
-rw-r--r-- | basic/source/inc/scanner.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/inc/scanner.hxx b/basic/source/inc/scanner.hxx index 5b5b03653b3b..9b03b0adc568 100644 --- a/basic/source/inc/scanner.hxx +++ b/basic/source/inc/scanner.hxx @@ -69,14 +69,14 @@ public: SbiScanner( const OUString&, StarBASIC* = nullptr ); void EnableErrors() { bError = false; } - bool IsHash() { return bHash; } - bool IsCompatible() { return bCompatible; } + bool IsHash() const { return bHash; } + bool IsCompatible() const { return bCompatible; } void SetCompatible( bool b ) { bCompatible = b; } // #118206 - bool IsVBASupportOn() { return bVBASupportOn; } + bool IsVBASupportOn() const { return bVBASupportOn; } bool WhiteSpace() { return bSpaces; } - sal_Int32 GetErrors() { return nErrors; } - sal_Int32 GetLine() { return nLine; } - sal_Int32 GetCol1() { return nCol1; } + sal_Int32 GetErrors() const { return nErrors; } + sal_Int32 GetLine() const { return nLine; } + sal_Int32 GetCol1() const { return nCol1; } void SetCol1( sal_Int32 n ) { nCol1 = n; } StarBASIC* GetBasic() { return pBasic; } void SaveLine() { nSaveLineIdx = nLineIdx; } @@ -86,9 +86,9 @@ public: bool DoesColonFollow(); bool NextSym(); - const OUString& GetSym() { return aSym; } - SbxDataType GetType() { return eScanType; } - double GetDbl() { return nVal; } + const OUString& GetSym() const { return aSym; } + SbxDataType GetType() const { return eScanType; } + double GetDbl() const { return nVal; } }; #endif |