diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-04 16:08:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-05 08:27:23 +0200 |
commit | 6c9917c7a74e1c14f1c60ad40b96470b6ef08936 (patch) | |
tree | 07beaf7a8207e34acc642ae2d91e3facd7080ccc /dbaccess/source/core | |
parent | 51fa45c8b8ee2ff37beef9639dc1ce5ed1e38e8f (diff) |
loplugin:constmethod in dbaccess
Change-Id: I3bb4784e1a2d828eca30f255a9c9bb4248309b81
Reviewed-on: https://gerrit.libreoffice.org/78603
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/core')
-rw-r--r-- | dbaccess/source/core/api/RowSetBase.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.hxx | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.hxx b/dbaccess/source/core/api/RowSetBase.hxx index a7446ea3439e..81b151bd15d8 100644 --- a/dbaccess/source/core/api/RowSetBase.hxx +++ b/dbaccess/source/core/api/RowSetBase.hxx @@ -332,7 +332,7 @@ namespace dbaccess bool isModification( const GrantNotifierAccess& ) { return isModification(); } bool isModified( const GrantNotifierAccess& ) { return isModified(); } bool isNew( const GrantNotifierAccess& ) { return isNew(); } - bool isInsertRow() { return m_bIsInsertRow; } // isNew() || isModified(); } + bool isInsertRow() const { return m_bIsInsertRow; } // isNew() || isModified(); } void fireProperty( sal_Int32 _nProperty, bool _bNew, bool _bOld, const GrantNotifierAccess& ) { fireProperty( _nProperty, _bNew, _bOld ); diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index c93067ab2944..a3a1de4df10a 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -673,12 +673,12 @@ bool ORowSetCache::next( ) } -bool ORowSetCache::isFirst( ) +bool ORowSetCache::isFirst( ) const { return m_nPosition == 1; // ask resultset for } -bool ORowSetCache::isLast( ) +bool ORowSetCache::isLast( ) const { return m_nPosition == m_nRowCount; } @@ -1123,7 +1123,7 @@ bool ORowSetCache::last( ) return bRet; } -sal_Int32 ORowSetCache::getRow( ) +sal_Int32 ORowSetCache::getRow( ) const { return (isBeforeFirst() || isAfterLast()) ? 0 : m_nPosition; } diff --git a/dbaccess/source/core/api/RowSetCache.hxx b/dbaccess/source/core/api/RowSetCache.hxx index 7d9adedcd35b..e727c72a0d40 100644 --- a/dbaccess/source/core/api/RowSetCache.hxx +++ b/dbaccess/source/core/api/RowSetCache.hxx @@ -146,7 +146,7 @@ namespace dbaccess void deregisterOldRow(const TORowSetOldRowHelperRef& _rRow); // css::sdbc::XResultSetMetaDataSupplier - const css::uno::Reference< css::sdbc::XResultSetMetaData >& getMetaData( ) { return m_xMetaData;} + const css::uno::Reference< css::sdbc::XResultSetMetaData >& getMetaData( ) const { return m_xMetaData;} // css::sdbcx::XRowLocate css::uno::Any getBookmark( ); @@ -170,13 +170,13 @@ namespace dbaccess bool next( ); bool isBeforeFirst( ) const { return m_bBeforeFirst;} bool isAfterLast( ) const { return m_bAfterLast;} - bool isFirst( ); - bool isLast( ); + bool isFirst( ) const; + bool isLast( ) const; void beforeFirst( ); void afterLast( ); bool first( ); bool last( ); - sal_Int32 getRow( ); + sal_Int32 getRow( ) const; bool absolute( sal_Int32 row ); bool relative( sal_Int32 rows ); bool previous( ); |