From b15ee18a5e81b7c3908fb5343930638cac4918d9 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Mon, 11 Apr 2016 09:09:44 +0200 Subject: 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 Tested-by: Noel Grandin --- dbaccess/source/core/api/RowSetCache.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbaccess/source') 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( ); -- cgit