summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-11 09:09:44 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-11 08:19:20 +0000
commitb15ee18a5e81b7c3908fb5343930638cac4918d9 (patch)
tree3c48958dc1adc5ab7a57177670b2afa772e3b83e /vcl
parentd91f38bcff7014564c71cb8782fee28b3090caab (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 'vcl')
-rw-r--r--vcl/win/gdi/winlayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index f370ff57a4bc..eb4e15e80b89 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -124,7 +124,7 @@ public:
return maOpenGLTextureCache[nGlyphIndex];
}
- bool IsGlyphCached(int nGlyphIndex)
+ bool IsGlyphCached(int nGlyphIndex) const
{
return maOpenGLTextureCache.find(nGlyphIndex) != maOpenGLTextureCache.end();
}