diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-11 09:09:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-11 08:19:20 +0000 |
commit | b15ee18a5e81b7c3908fb5343930638cac4918d9 (patch) | |
tree | 3c48958dc1adc5ab7a57177670b2afa772e3b83e /svl | |
parent | d91f38bcff7014564c71cb8782fee28b3090caab (diff) |
cppcheck: silence warnings assertWithSideEffect
Mark some class methods as pure.
warnings look like this:
> dbaccess/source/core/api/RowSetBase.cxx
> 593 assertWithSideEffect 398 warning Assert statement calls
> a function which may have desired side effects: 'isAfterLast'.
Change-Id: I1b69340c3714be4678b599fa9a8ca933122aa857
Reviewed-on: https://gerrit.libreoffice.org/23981
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/config/cjkoptions.cxx | 2 | ||||
-rw-r--r-- | svl/source/config/ctloptions.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx index a9b7786fc32f..906250174d41 100644 --- a/svl/source/config/cjkoptions.cxx +++ b/svl/source/config/cjkoptions.cxx @@ -66,7 +66,7 @@ public: virtual void Notify( const css::uno::Sequence< OUString >& rPropertyNames ) override; void Load(); - bool IsLoaded() { return bIsLoaded; } + bool IsLoaded() const { return bIsLoaded; } bool IsCJKFontEnabled() const { return bCJKFont; } bool IsVerticalTextEnabled() const { return bVerticalText; } diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx index e431ecf64034..7aed551e926a 100644 --- a/svl/source/config/ctloptions.cxx +++ b/svl/source/config/ctloptions.cxx @@ -63,7 +63,7 @@ public: virtual void Notify( const Sequence< OUString >& _aPropertyNames ) override; void Load(); - bool IsLoaded() { return m_bIsLoaded; } + bool IsLoaded() const { return m_bIsLoaded; } void SetCTLFontEnabled( bool _bEnabled ); bool IsCTLFontEnabled() const { return m_bCTLFontEnabled; } |