summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 15:26:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-27 15:30:53 +0200
commit0e4d62adee96ac89822b1808b80af77c8264d052 (patch)
tree7c0f762d7fbb1dc3c38a707040c143409ad4daf9 /connectivity
parentc555142e001167df18ffdd6dc038e2db0c55dc56 (diff)
More loplugin:simplifybool
Change-Id: Ie7bc1411d591b75c243dc0edda6360fad698c19e
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mork/MResultSet.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx
index 5c1a1713b8fb..5fdf9186240e 100644
--- a/connectivity/source/drivers/mork/MResultSet.cxx
+++ b/connectivity/source/drivers/mork/MResultSet.cxx
@@ -352,7 +352,7 @@ bool OResultSet::fetchRow(sal_Int32 cardNumber,bool bForceReload) throw(SQLExcep
// else
// m_aQuery.resyncRow(cardNumber);
- if ( validRow( cardNumber ) == false )
+ if ( !validRow( cardNumber ) )
return false;
(m_aRow->get())[0] = (sal_Int32)cardNumber;
@@ -378,7 +378,7 @@ bool OResultSet::fetchRow(sal_Int32 cardNumber,bool bForceReload) throw(SQLExcep
const ORowSetValue& OResultSet::getValue(sal_Int32 cardNumber, sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
- if ( fetchRow( cardNumber ) == false )
+ if ( !fetchRow( cardNumber ) )
{
OSL_FAIL("fetchRow() returned False" );
m_bWasNull = true;
@@ -1421,7 +1421,7 @@ bool OResultSet::validRow( sal_uInt32 nRow)
#if OSL_DEBUG_LEVEL > 0
OSL_TRACE("validRow: waiting...");
#endif
- if (m_aQueryHelper.checkRowAvailable( nRow ) == false)
+ if (!m_aQueryHelper.checkRowAvailable( nRow ))
{
SAL_INFO(
"connectivity.mork",
@@ -1555,7 +1555,7 @@ void OResultSet::setColumnMapping(const ::std::vector<sal_Int32>& _aColumnMappin
{
SAL_INFO("connectivity.mork", "m_nRowPos = " << m_nRowPos);
ResultSetEntryGuard aGuard( *this );
- if ( fetchCurrentRow() == false ) {
+ if ( !fetchCurrentRow() ) {
m_pStatement->getOwnConnection()->throwSQLException( STR_ERROR_GET_ROW, *this );
}
@@ -1647,7 +1647,7 @@ void OResultSet::updateValue(sal_Int32 columnIndex ,const ORowSetValue& x) throw
{
SAL_INFO("connectivity.mork", "m_nRowPos = " << m_nRowPos);
ResultSetEntryGuard aGuard( *this );
- if ( fetchCurrentRow() == false ) {
+ if ( !fetchCurrentRow() ) {
m_pStatement->getOwnConnection()->throwSQLException( STR_ERROR_GET_ROW, *this );
}
@@ -1667,7 +1667,7 @@ void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException
{
SAL_INFO("connectivity.mork", "m_nRowPos = " << m_nRowPos);
ResultSetEntryGuard aGuard( *this );
- if ( fetchCurrentRow() == false )
+ if ( !fetchCurrentRow() )
m_pStatement->getOwnConnection()->throwSQLException( STR_ERROR_GET_ROW, *this );
checkPendingUpdate();