From db496668e0dec6cede2428f55efe7c192cd9c1de Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 21 Apr 2016 20:03:48 +0200 Subject: loplugin:salbool Change-Id: Ibcae25d2476de37842e4a0e670b5951f431195a2 --- .../source/drivers/macab/MacabConnection.cxx | 4 +- .../source/drivers/macab/MacabDatabaseMetaData.cxx | 180 ++++++++++----------- connectivity/source/drivers/macab/MacabDriver.cxx | 2 +- .../source/drivers/macab/MacabResultSet.cxx | 48 +++--- .../drivers/macab/MacabResultSetMetaData.cxx | 18 +-- 5 files changed, 126 insertions(+), 126 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/drivers/macab/MacabConnection.cxx b/connectivity/source/drivers/macab/MacabConnection.cxx index 894ac7c2a7cb..4c25d7559d66 100644 --- a/connectivity/source/drivers/macab/MacabConnection.cxx +++ b/connectivity/source/drivers/macab/MacabConnection.cxx @@ -125,7 +125,7 @@ sal_Bool SAL_CALL MacabConnection::getAutoCommit( ) throw(SQLException, Runtime // you have to distinguish which if you are in autocommit mode or not // at normal case true should be fine here - return sal_True; + return true; } void SAL_CALL MacabConnection::commit( ) throw(SQLException, RuntimeException) @@ -183,7 +183,7 @@ sal_Bool SAL_CALL MacabConnection::isReadOnly( ) throw(SQLException, RuntimeExc checkDisposed(MacabConnection_BASE::rBHelper.bDisposed); // return if your connection to readonly - return sal_False; + return false; } void SAL_CALL MacabConnection::setCatalog( const OUString& ) throw(SQLException, RuntimeException) diff --git a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx index d32f4f9815ce..fa3e9c927b5a 100644 --- a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx +++ b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx @@ -140,47 +140,47 @@ sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxTablesInSelect( ) throw(SQLExce sal_Bool SAL_CALL MacabDatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::storesMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException) @@ -191,7 +191,7 @@ sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxIndexLength( ) throw(SQLExcepti sal_Bool SAL_CALL MacabDatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } OUString SAL_CALL MacabDatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException) @@ -218,7 +218,7 @@ OUString SAL_CALL MacabDatabaseMetaData::getExtraNameCharacters( ) throw(SQLExc sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::isCatalogAtStart( ) throw(SQLException, RuntimeException) @@ -232,107 +232,107 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::isCatalogAtStart( ) throw(SQLException sal_Bool SAL_CALL MacabDatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabDatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInDataManipulation( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException) { - return sal_True; // should be supported at least + return true; // should be supported at least } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInTableDefinitions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInTableDefinitions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException) @@ -355,198 +355,198 @@ sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLEx sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException) { // for the moment, we have read-only addresses, but this might change in the future - return sal_True; + return true; } sal_Bool SAL_CALL MacabDatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsConvert( sal_Int32, sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } OUString SAL_CALL MacabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException) @@ -648,27 +648,27 @@ OUString SAL_CALL MacabDatabaseMetaData::getNumericFunctions( ) throw(SQLExcept sal_Bool SAL_CALL MacabDatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException) @@ -701,9 +701,9 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetType( sal_Int32 setTyp { case ResultSetType::FORWARD_ONLY: case ResultSetType::SCROLL_INSENSITIVE: - return sal_True; + return true; } - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 ) throw(SQLException, RuntimeException) @@ -712,59 +712,59 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 { case ResultSetType::FORWARD_ONLY: case ResultSetType::SCROLL_INSENSITIVE: - return sal_True; + return true; } - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::ownUpdatesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::ownDeletesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::ownInsertsAreVisible( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::othersUpdatesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::othersDeletesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::othersInsertsAreVisible( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::updatesAreDetected( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::deletesAreDetected( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::insertsAreDetected( sal_Int32 ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException) { - return sal_False; + return false; } Reference< XConnection > SAL_CALL MacabDatabaseMetaData::getConnection( ) throw(SQLException, RuntimeException) diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx index 57632e6f798e..e4fc71d83a1f 100644 --- a/connectivity/source/drivers/macab/MacabDriver.cxx +++ b/connectivity/source/drivers/macab/MacabDriver.cxx @@ -273,7 +273,7 @@ sal_Bool SAL_CALL MacabDriver::acceptsURL( const OUString& url ) ::osl::MutexGuard aGuard(m_aMutex); if ( !m_aImplModule.isMacOSPresent() ) - return sal_False; + return false; // here we have to look whether we support this URL format return url == "sdbc:address:macab"; diff --git a/connectivity/source/drivers/macab/MacabResultSet.cxx b/connectivity/source/drivers/macab/MacabResultSet.cxx index dd19ebb549c6..a3c2a3b8275e 100644 --- a/connectivity/source/drivers/macab/MacabResultSet.cxx +++ b/connectivity/source/drivers/macab/MacabResultSet.cxx @@ -236,7 +236,7 @@ sal_Bool SAL_CALL MacabResultSet::getBoolean(sal_Int32) throw(SQLException, Runt ::dbtools::throwFunctionNotSupportedSQLException("getBoolean", nullptr); - return sal_False; + return false; } sal_Int8 SAL_CALL MacabResultSet::getByte(sal_Int32) throw(SQLException, RuntimeException) @@ -524,9 +524,9 @@ sal_Bool SAL_CALL MacabResultSet::isBeforeFirst() throw(SQLException, RuntimeExc checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); if (m_nRowPos == -1) - return sal_True; + return true; - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::isAfterLast() throw(SQLException, RuntimeException) @@ -536,9 +536,9 @@ sal_Bool SAL_CALL MacabResultSet::isAfterLast() throw(SQLException, RuntimeExcep sal_Int32 nRecords = m_aMacabRecords->size(); if (m_nRowPos == nRecords) - return sal_True; + return true; - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::isFirst() throw(SQLException, RuntimeException) @@ -547,9 +547,9 @@ sal_Bool SAL_CALL MacabResultSet::isFirst() throw(SQLException, RuntimeException checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); if (m_nRowPos == 0) - return sal_True; + return true; - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::isLast() throw(SQLException, RuntimeException) @@ -559,9 +559,9 @@ sal_Bool SAL_CALL MacabResultSet::isLast() throw(SQLException, RuntimeException) sal_Int32 nRecords = m_aMacabRecords->size(); if (m_nRowPos == nRecords - 1) - return sal_True; + return true; - return sal_False; + return false; } void SAL_CALL MacabResultSet::beforeFirst() throw(SQLException, RuntimeException) @@ -599,10 +599,10 @@ sal_Bool SAL_CALL MacabResultSet::first() throw(SQLException, RuntimeException) sal_Int32 nRecords = m_aMacabRecords->size(); if (nRecords == 0) - return sal_False; + return false; m_nRowPos = 0; - return sal_True; + return true; } sal_Bool SAL_CALL MacabResultSet::last() throw(SQLException, RuntimeException) @@ -612,10 +612,10 @@ sal_Bool SAL_CALL MacabResultSet::last() throw(SQLException, RuntimeException) sal_Int32 nRecords = m_aMacabRecords->size(); if (nRecords == 0) - return sal_False; + return false; m_nRowPos = nRecords - 1; - return sal_True; + return true; } sal_Int32 SAL_CALL MacabResultSet::getRow() throw(SQLException, RuntimeException) @@ -634,10 +634,10 @@ sal_Bool SAL_CALL MacabResultSet::absolute(sal_Int32 row) throw(SQLException, Ru sal_Int32 nRecords = m_aMacabRecords->size(); if (row <= -1 || row >= nRecords) - return sal_False; + return false; m_nRowPos = row; - return sal_True; + return true; } sal_Bool SAL_CALL MacabResultSet::relative(sal_Int32 row) throw(SQLException, RuntimeException) @@ -678,7 +678,7 @@ sal_Bool SAL_CALL MacabResultSet::rowDeleted() throw(SQLException, RuntimeExcept ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::rowInserted() throw(SQLException, RuntimeException) @@ -686,7 +686,7 @@ sal_Bool SAL_CALL MacabResultSet::rowInserted() throw(SQLException, RuntimeExcep ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::rowUpdated() throw(SQLException, RuntimeException) @@ -694,7 +694,7 @@ sal_Bool SAL_CALL MacabResultSet::rowUpdated() throw(SQLException, RuntimeExcept ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::wasNull() throw(SQLException, RuntimeException) @@ -911,12 +911,12 @@ sal_Bool SAL_CALL MacabResultSet::moveToBookmark(const Any& bookmark) throw( SQ if (sUniqueIdentifier == sBookmark) { m_nRowPos = nRow; - return sal_True; + return true; } } } } - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSet::moveRelativeToBookmark(const Any& bookmark, sal_Int32 rows) throw( SQLException, RuntimeException) @@ -933,11 +933,11 @@ sal_Bool SAL_CALL MacabResultSet::moveRelativeToBookmark(const Any& bookmark, s m_nRowPos += rows; if (-1 < m_nRowPos && m_nRowPos < nRecords) - return sal_True; + return true; } m_nRowPos = nRowSave; - return sal_False; + return false; } sal_Int32 SAL_CALL MacabResultSet::compareBookmarks(const Any& firstItem, const Any& secondItem) throw( SQLException, RuntimeException) @@ -957,7 +957,7 @@ sal_Int32 SAL_CALL MacabResultSet::compareBookmarks(const Any& firstItem, const sal_Bool SAL_CALL MacabResultSet::hasOrderedBookmarks() throw( SQLException, RuntimeException) { - return sal_False; + return false; } sal_Int32 SAL_CALL MacabResultSet::hashBookmark(const Any& bookmark) throw( SQLException, RuntimeException) @@ -1030,7 +1030,7 @@ sal_Bool MacabResultSet::convertFastPropertyValue( default: ; } - return sal_False; + return false; } void MacabResultSet::setFastPropertyValue_NoBroadcast( diff --git a/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx b/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx index abcb0ce145b3..6dfc2e11cc49 100644 --- a/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx +++ b/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx @@ -109,7 +109,7 @@ sal_Int32 SAL_CALL MacabResultSetMetaData::getColumnCount() throw(SQLException, sal_Bool SAL_CALL MacabResultSetMetaData::isCaseSensitive(sal_Int32) throw(SQLException, RuntimeException) { - return sal_True; + return true; } OUString SAL_CALL MacabResultSetMetaData::getSchemaName(sal_Int32) throw(SQLException, RuntimeException) @@ -164,17 +164,17 @@ OUString SAL_CALL MacabResultSetMetaData::getColumnServiceName(sal_Int32) throw( sal_Bool SAL_CALL MacabResultSetMetaData::isCurrency(sal_Int32) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSetMetaData::isAutoIncrement(sal_Int32) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSetMetaData::isSigned(sal_Int32) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Int32 SAL_CALL MacabResultSetMetaData::getPrecision(sal_Int32) throw(SQLException, RuntimeException) @@ -189,27 +189,27 @@ sal_Int32 SAL_CALL MacabResultSetMetaData::getScale(sal_Int32) throw(::com::sun: sal_Int32 SAL_CALL MacabResultSetMetaData::isNullable(sal_Int32) throw(SQLException, RuntimeException) { - return (sal_Int32) sal_True; + return (sal_Int32) true; } sal_Bool SAL_CALL MacabResultSetMetaData::isSearchable(sal_Int32) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabResultSetMetaData::isReadOnly(sal_Int32) throw(SQLException, RuntimeException) { - return sal_True; + return true; } sal_Bool SAL_CALL MacabResultSetMetaData::isDefinitelyWritable(sal_Int32) throw(SQLException, RuntimeException) { - return sal_False; + return false; } sal_Bool SAL_CALL MacabResultSetMetaData::isWritable(sal_Int32) throw(SQLException, RuntimeException) { - return sal_False; + return false; } -- cgit