summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-01-19 17:54:10 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-01-19 21:08:10 +0100
commitb2345f6d18ae6787fa6f05a3431e75f6810f83fc (patch)
treedc76e06668cb424c0d5541bc061a7298d8eef7c4 /dbaccess
parentcolumn position 0 is perfectly valid (diff)
downloadcore-b2345f6d18ae6787fa6f05a3431e75f6810f83fc.tar.gz
core-b2345f6d18ae6787fa6f05a3431e75f6810f83fc.zip
janitorial: don't rely on detail of current OSL_ENSURE implementation
As in: that the compiler won't see the variables in the condition when OSL_DEBUG_LEVEL==0
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx
index f3ca25084cee..728934b8ac8a 100644
--- a/dbaccess/source/core/api/RowSetBase.cxx
+++ b/dbaccess/source/core/api/RowSetBase.cxx
@@ -1128,8 +1128,8 @@ void ORowSetBase::setCurrentRow( sal_Bool _bMoved, sal_Bool _bDoNotify, const OR
positionCache( MOVE_NONE_REFRESH_ONLY );
#if OSL_DEBUG_LEVEL > 0
sal_Int32 nNewRow = m_pCache->getRow();
-#endif
OSL_ENSURE(nOldRow == nNewRow,"Old position is not equal to new postion");
+#endif
m_aCurrentRow = m_pCache->m_aMatrixIter;
m_bIsInsertRow = sal_False;
OSL_ENSURE(!m_aCurrentRow.isNull(),"CurrentRow is nul after positionCache!");