summaryrefslogtreecommitdiff
path: root/dbaccess/source
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 /dbaccess/source
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 'dbaccess/source')
-rw-r--r--dbaccess/source/core/api/RowSetCache.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.hxx b/dbaccess/source/core/api/RowSetCache.hxx
index 86bb8ccfe355..c623d3481344 100644
--- a/dbaccess/source/core/api/RowSetCache.hxx
+++ b/dbaccess/source/core/api/RowSetCache.hxx
@@ -174,8 +174,8 @@ namespace dbaccess
// css::sdbc::XResultSet
bool next( );
- bool isBeforeFirst( ) { return m_bBeforeFirst;}
- bool isAfterLast( ) { return m_bAfterLast;}
+ bool isBeforeFirst( ) const { return m_bBeforeFirst;}
+ bool isAfterLast( ) const { return m_bAfterLast;}
bool isFirst( );
bool isLast( );
bool beforeFirst( );