diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:15:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:37 +0200 |
commit | 15e410e5afac989e423d6ce158ef65288c67ee7b (patch) | |
tree | 5c56e8b7b90b51b86b1f5ccbda0bf3c63533ae71 /connectivity | |
parent | f555ab4e96a3d796c67cbec1c948cb920ebb3750 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I6fada7331ee369c35cbe019db4e730ce56cd1a1f
Diffstat (limited to 'connectivity')
68 files changed, 649 insertions, 649 deletions
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index 1aa85ba01624..d78dad6ebd9c 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -334,13 +334,13 @@ SAL_WNOUNREACHABLE_CODE_PUSH sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isFirst( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } SAL_WNOUNREACHABLE_CODE_POP @@ -373,32 +373,32 @@ SAL_WNOUNREACHABLE_CODE_PUSH sal_Bool SAL_CALL ODatabaseMetaDataResultSet::first( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::last( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 /*row*/ ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::relative( sal_Int32 /*row*/ ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } SAL_WNOUNREACHABLE_CODE_POP @@ -415,19 +415,19 @@ SAL_WNOUNREACHABLE_CODE_PUSH sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowDeleted( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowInserted( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionSequenceException(*this); - return sal_False; + return false; } SAL_WNOUNREACHABLE_CODE_POP @@ -475,7 +475,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, Ru if(m_aRowsIter == m_aRows.end() || !(*m_aRowsIter)[m_nColPos].is()) - return sal_True; + return true; return (*m_aRowsIter)[m_nColPos]->getValue().isNull(); } diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSetMetaData.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSetMetaData.cxx index 81550e121f5e..d75b8e5b4f94 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSetMetaData.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSetMetaData.cxx @@ -58,7 +58,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isCaseSensitive( sal_Int32 { if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end()) return (*m_mColumnsIter).second.isCaseSensitive(); - return sal_True; + return true; } OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getSchemaName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) @@ -110,21 +110,21 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isCurrency( sal_Int32 colu { if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end()) return (*m_mColumnsIter).second.isCurrency(); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) { if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end()) return (*m_mColumnsIter).second.isAutoIncrement(); - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) { if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end()) return (*m_mColumnsIter).second.isSigned(); - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) @@ -154,17 +154,17 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isSearchable( sal_Int32 co { if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end()) return (*m_mColumnsIter).second.isSearchable(); - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isReadOnly( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isDefinitelyWritable( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/commontools/TDatabaseMetaDataBase.cxx b/connectivity/source/commontools/TDatabaseMetaDataBase.cxx index d6bb581601b1..b2a8671e9101 100644 --- a/connectivity/source/commontools/TDatabaseMetaDataBase.cxx +++ b/connectivity/source/commontools/TDatabaseMetaDataBase.cxx @@ -38,19 +38,19 @@ using namespace connectivity; ODatabaseMetaDataBase::ODatabaseMetaDataBase(const Reference< XConnection >& _rxConnection,const Sequence< PropertyValue >& _rInfo) : m_aConnectionInfo(_rInfo) - ,m_isCatalogAtStart(false,sal_False) + ,m_isCatalogAtStart(false,false) ,m_sCatalogSeparator(false,OUString()) ,m_sIdentifierQuoteString(false,OUString()) - ,m_supportsCatalogsInTableDefinitions(false,sal_False) - ,m_supportsSchemasInTableDefinitions(false,sal_False) - ,m_supportsCatalogsInDataManipulation(false,sal_False) - ,m_supportsSchemasInDataManipulation(false,sal_False) - ,m_supportsMixedCaseQuotedIdentifiers(false,sal_False) - ,m_supportsAlterTableWithAddColumn(false,sal_False) - ,m_supportsAlterTableWithDropColumn(false,sal_False) + ,m_supportsCatalogsInTableDefinitions(false,false) + ,m_supportsSchemasInTableDefinitions(false,false) + ,m_supportsCatalogsInDataManipulation(false,false) + ,m_supportsSchemasInDataManipulation(false,false) + ,m_supportsMixedCaseQuotedIdentifiers(false,false) + ,m_supportsAlterTableWithAddColumn(false,false) + ,m_supportsAlterTableWithDropColumn(false,false) ,m_MaxStatements(false,0) ,m_MaxTablesInSelect(false,0) - ,m_storesMixedCaseQuotedIdentifiers(false,sal_False) + ,m_storesMixedCaseQuotedIdentifiers(false,false) , m_xConnection(_rxConnection) { osl_atomic_increment( &m_refCount ); diff --git a/connectivity/source/commontools/TIndex.cxx b/connectivity/source/commontools/TIndex.cxx index 5d7ca6a1d724..88f5d687fa3b 100644 --- a/connectivity/source/commontools/TIndex.cxx +++ b/connectivity/source/commontools/TIndex.cxx @@ -73,7 +73,7 @@ void OIndexHelper::refreshColumns() Reference< XResultSet > xResult = m_pTable->getMetaData()->getIndexInfo( m_pTable->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_CATALOGNAME)), - aSchema,aTable,sal_False,sal_False); + aSchema,aTable,false,false); if ( xResult.is() ) { diff --git a/connectivity/source/commontools/TIndexColumns.cxx b/connectivity/source/commontools/TIndexColumns.cxx index 0edd2ec88eeb..fe4a9cda3632 100644 --- a/connectivity/source/commontools/TIndexColumns.cxx +++ b/connectivity/source/commontools/TIndexColumns.cxx @@ -54,7 +54,7 @@ sdbcx::ObjectType OIndexColumns::createObject(const OUString& _rName) m_pIndex->getTable()->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_NAME)) >>= aTable; Reference< XResultSet > xResult = m_pIndex->getTable()->getConnection()->getMetaData()->getIndexInfo( - Catalog, aSchema, aTable, sal_False, sal_False); + Catalog, aSchema, aTable, false, false); bool bAsc = true; if ( xResult.is() ) diff --git a/connectivity/source/commontools/TIndexes.cxx b/connectivity/source/commontools/TIndexes.cxx index f27bc9958f08..81858e3c433b 100644 --- a/connectivity/source/commontools/TIndexes.cxx +++ b/connectivity/source/commontools/TIndexes.cxx @@ -71,7 +71,7 @@ sdbcx::ObjectType OIndexesHelper::createObject(const OUString& _rName) m_pTable->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_NAME)) >>= aTable; Any aCatalog = m_pTable->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_CATALOGNAME)); - Reference< XResultSet > xResult = m_pTable->getMetaData()->getIndexInfo(aCatalog,aSchema,aTable,sal_False,sal_False); + Reference< XResultSet > xResult = m_pTable->getMetaData()->getIndexInfo(aCatalog,aSchema,aTable,false,false); if ( xResult.is() ) { diff --git a/connectivity/source/commontools/TPrivilegesResultSet.cxx b/connectivity/source/commontools/TPrivilegesResultSet.cxx index 573a30e1a979..96d1732f8c04 100644 --- a/connectivity/source/commontools/TPrivilegesResultSet.cxx +++ b/connectivity/source/commontools/TPrivilegesResultSet.cxx @@ -126,7 +126,7 @@ sal_Bool SAL_CALL OResultSetPrivileges::next( ) throw(SQLException, RuntimeExce { m_bResetValues = true; if ( !m_xTables->next() ) - return sal_False; + return false; } bReturn = ODatabaseMetaDataResultSet::next(); diff --git a/connectivity/source/commontools/TTableHelper.cxx b/connectivity/source/commontools/TTableHelper.cxx index 63a1c6d869f9..eefd94eee961 100644 --- a/connectivity/source/commontools/TTableHelper.cxx +++ b/connectivity/source/commontools/TTableHelper.cxx @@ -448,7 +448,7 @@ void OTableHelper::refreshIndexes() Any aCatalog; if ( !m_CatalogName.isEmpty() ) aCatalog <<= m_CatalogName; - Reference< XResultSet > xResult = getMetaData()->getIndexInfo(aCatalog,m_SchemaName,m_Name,sal_False,sal_False); + Reference< XResultSet > xResult = getMetaData()->getIndexInfo(aCatalog,m_SchemaName,m_Name,false,false); if(xResult.is()) { diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 28cfb40a2b1f..68471608a13a 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -178,10 +178,10 @@ sal_Int32 getDefaultNumberFormat(sal_Int32 _nDataType, { // generate a new format if necessary Reference< XNumberFormats > xFormats(_xTypes, UNO_QUERY); - OUString sNewFormat = xFormats->generateFormat( 0L, _rLocale, sal_False, sal_False, (sal_Int16)_nScale, 1); + OUString sNewFormat = xFormats->generateFormat( 0L, _rLocale, false, false, (sal_Int16)_nScale, 1); // and add it to the formatter if necessary - nFormat = xFormats->queryKey(sNewFormat, _rLocale, sal_False); + nFormat = xFormats->queryKey(sNewFormat, _rLocale, false); if (nFormat == (sal_Int32)-1) nFormat = xFormats->addNew(sNewFormat, _rLocale); } @@ -1127,11 +1127,11 @@ try } // With this we can generate a new format ... - OUString sNewFormat = xFormats->generateFormat(nBaseKey, _rLocale, sal_False, sal_False, nDecimals, 0); + OUString sNewFormat = xFormats->generateFormat(nBaseKey, _rLocale, false, false, nDecimals, 0); // No thousands separator, negative numbers are not in red, no leading zeros // ... and add at FormatsSupplier (if needed) - sal_Int32 nKey = xFormats->queryKey(sNewFormat, _rLocale, sal_False); + sal_Int32 nKey = xFormats->queryKey(sNewFormat, _rLocale, false); if (nKey == (sal_Int32)-1) { // not added yet in my formatter ... nKey = xFormats->addNew(sNewFormat, _rLocale); diff --git a/connectivity/source/commontools/paramwrapper.cxx b/connectivity/source/commontools/paramwrapper.cxx index e9327d0e0c64..72e91a977e76 100644 --- a/connectivity/source/commontools/paramwrapper.cxx +++ b/connectivity/source/commontools/paramwrapper.cxx @@ -185,7 +185,7 @@ namespace param // we're lazy here ... rOldValue = m_aValue.makeAny(); rConvertedValue = rValue; - return sal_True; // assume "modified" ... + return true; // assume "modified" ... } @@ -255,7 +255,7 @@ namespace param m_xDelegatorPSI.clear(); m_xValueDestination.clear(); - m_aBHelper.bDisposed = sal_True; + m_aBHelper.bDisposed = true; } ParameterWrapperContainer::ParameterWrapperContainer() diff --git a/connectivity/source/drivers/calc/CResultSet.cxx b/connectivity/source/drivers/calc/CResultSet.cxx index 31f82eeb9ca5..823a99ede40a 100644 --- a/connectivity/source/drivers/calc/CResultSet.cxx +++ b/connectivity/source/drivers/calc/CResultSet.cxx @@ -115,7 +115,7 @@ sal_Int32 SAL_CALL OCalcResultSet::compareBookmarks( const Any& lhs, const Any& sal_Bool SAL_CALL OCalcResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 SAL_CALL OCalcResultSet::hashBookmark( const Any& bookmark ) throw( SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx index 8550add9329b..71eca9bab2b6 100644 --- a/connectivity/source/drivers/calc/CTable.cxx +++ b/connectivity/source/drivers/calc/CTable.cxx @@ -115,7 +115,7 @@ static void lcl_GetDataArea( const Reference<XSpreadsheet>& xSheet, sal_Int32& r // If the used area is larger than the contiguous cell area, find non-empty // cells in that area. - xUsed->gotoEndOfUsedArea( sal_False ); + xUsed->gotoEndOfUsedArea( false ); CellRangeAddress aUsedAddr = xRange->getRangeAddress(); if ( aUsedAddr.EndColumn > aRegionAddr.EndColumn ) diff --git a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx index 6ad63143a4cd..1293e9fa71fd 100644 --- a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx +++ b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx @@ -117,13 +117,13 @@ Reference< XResultSet > ODbaseDatabaseMetaData::impl_getTypeInfo_throw( ) aRow[13] = new ORowSetValueDecorator(OUString("B")); aRows.push_back(aRow); - aRow[11] = new ORowSetValueDecorator(sal_True); + aRow[11] = new ORowSetValueDecorator(true); aRow[13] = new ORowSetValueDecorator(OUString("Y")); aRows.push_back(aRow); aRow[1] = new ORowSetValueDecorator(OUString("TIMESTAMP")); aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP); - aRow[11] = new ORowSetValueDecorator(sal_False); + aRow[11] = new ORowSetValueDecorator(false); aRow[13] = new ORowSetValueDecorator(OUString("T")); aRows.push_back(aRow); @@ -361,12 +361,12 @@ sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLExc sal_Bool SAL_CALL ODbaseDatabaseMetaData::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODbaseDatabaseMetaData::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODbaseDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/dbase/DDriver.cxx b/connectivity/source/drivers/dbase/DDriver.cxx index 80e5211211c2..e6ab32ee71e7 100644 --- a/connectivity/source/drivers/dbase/DDriver.cxx +++ b/connectivity/source/drivers/dbase/DDriver.cxx @@ -87,21 +87,21 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString aDriverInfo.push_back(DriverPropertyInfo( OUString("CharSet") ,OUString("CharSet of the database.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ShowDeleted") ,OUString("Display inactive records.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("EnableSQL92Check") ,OUString("Use SQL92 naming constraints.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); diff --git a/connectivity/source/drivers/dbase/DResultSet.cxx b/connectivity/source/drivers/dbase/DResultSet.cxx index 17b6e9cd05f5..6c3f4a2a8ad0 100644 --- a/connectivity/source/drivers/dbase/DResultSet.cxx +++ b/connectivity/source/drivers/dbase/DResultSet.cxx @@ -102,7 +102,7 @@ sal_Bool SAL_CALL ODbaseResultSet::moveRelativeToBookmark( const Any& bookmark, ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); if(!m_pTable) - return sal_False; + return false; Move(IResultSetHelper::BOOKMARK,comphelper::getINT32(bookmark),false); @@ -133,7 +133,7 @@ sal_Int32 SAL_CALL ODbaseResultSet::compareBookmarks( const Any& lhs, const Any& sal_Bool SAL_CALL ODbaseResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 SAL_CALL ODbaseResultSet::hashBookmark( const Any& bookmark ) throw( SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/evoab2/NConnection.cxx b/connectivity/source/drivers/evoab2/NConnection.cxx index c6d0ba21f3d8..bba1d92c3f85 100644 --- a/connectivity/source/drivers/evoab2/NConnection.cxx +++ b/connectivity/source/drivers/evoab2/NConnection.cxx @@ -208,7 +208,7 @@ void SAL_CALL OEvoabConnection::setAutoCommit( sal_Bool /*autoCommit*/ ) throw(S } sal_Bool SAL_CALL OEvoabConnection::getAutoCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } void SAL_CALL OEvoabConnection::commit( ) throw(SQLException, RuntimeException, std::exception) { @@ -222,7 +222,7 @@ void SAL_CALL OEvoabConnection::setReadOnly( sal_Bool /*readOnly*/ ) throw(SQLEx } sal_Bool SAL_CALL OEvoabConnection::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } void SAL_CALL OEvoabConnection::setCatalog( const OUString& /*catalog*/ ) throw(SQLException, RuntimeException, std::exception) { diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 01822b14ea27..d1118e2a0cd7 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -387,17 +387,17 @@ sal_Int32 OEvoabDatabaseMetaData::impl_getMaxTablesInSelect_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( ) @@ -407,17 +407,17 @@ bool OEvoabDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( ) @@ -437,7 +437,7 @@ sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxIndexLength( ) throw(SQLExcept sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL OEvoabDatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException, std::exception) @@ -461,7 +461,7 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getExtraNameCharacters( ) throw(SQLEx sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_isCatalogAtStart_throw( ) @@ -471,57 +471,57 @@ bool OEvoabDatabaseMetaData::impl_isCatalogAtStart_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( ) @@ -531,22 +531,22 @@ bool OEvoabDatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; // should be supported at least + return true; // should be supported at least } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( ) @@ -561,7 +561,7 @@ bool OEvoabDatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( ) @@ -571,7 +571,7 @@ bool OEvoabDatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException, std::exception) @@ -591,125 +591,125 @@ sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLE sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException, std::exception) { // We allow you to select from any table. - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) { // For now definitely read-only, no support for update/delete - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException, std::exception) { // todo add Support for this. - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool OEvoabDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( ) @@ -720,72 +720,72 @@ bool OEvoabDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( ) sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL OEvoabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException, std::exception) @@ -884,27 +884,27 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getNumericFunctions( ) throw(SQLExcep sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException, std::exception) @@ -929,62 +929,62 @@ sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxUserNameLength( ) throw(SQLExc sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsResultSetType( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 /*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } // here follow all methods which return a resultset diff --git a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx index d12162c9848e..4a11eb341ac2 100644 --- a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx +++ b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx @@ -317,7 +317,7 @@ sal_Int32 SAL_CALL OEvoabPreparedStatement::getUpdateCount( ) throw(SQLExceptio sal_Bool SAL_CALL OEvoabPreparedStatement::getMoreResults( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 1f1d1d970d4c..bc5ca27bbf3c 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -1047,7 +1047,7 @@ sal_Bool SAL_CALL OEvoabResultSet::rowDeleted( ) throw(SQLException, RuntimeExc ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabResultSet::rowInserted( ) throw(SQLException, RuntimeException, std::exception) @@ -1055,7 +1055,7 @@ sal_Bool SAL_CALL OEvoabResultSet::rowInserted( ) throw(SQLException, RuntimeEx ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabResultSet::rowUpdated( ) throw(SQLException, RuntimeException, std::exception) @@ -1063,7 +1063,7 @@ sal_Bool SAL_CALL OEvoabResultSet::rowUpdated( ) throw(SQLException, RuntimeExc ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - return sal_False; + return false; } void SAL_CALL OEvoabResultSet::refreshRow( ) throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx index 6da5fea9fc01..b985650ed319 100644 --- a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx @@ -82,7 +82,7 @@ sal_Int32 SAL_CALL OEvoabResultSetMetaData::getColumnCount( ) throw(SQLExceptio sal_Bool SAL_CALL OEvoabResultSetMetaData::isCaseSensitive( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } OUString SAL_CALL OEvoabResultSetMetaData::getSchemaName( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) @@ -133,17 +133,17 @@ OUString SAL_CALL OEvoabResultSetMetaData::getCatalogName( sal_Int32 /*nColumnNu sal_Bool SAL_CALL OEvoabResultSetMetaData::isCurrency( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabResultSetMetaData::isAutoIncrement( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabResultSetMetaData::isSigned( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL OEvoabResultSetMetaData::getPrecision( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) @@ -163,22 +163,22 @@ sal_Int32 SAL_CALL OEvoabResultSetMetaData::isNullable( sal_Int32 /*nColumnNum*/ sal_Bool SAL_CALL OEvoabResultSetMetaData::isSearchable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabResultSetMetaData::isReadOnly( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL OEvoabResultSetMetaData::isDefinitelyWritable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OEvoabResultSetMetaData::isWritable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx index 12c9e1e6eb38..dd2748cd091b 100644 --- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx +++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx @@ -196,7 +196,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( Sequence< NumberedSortingInfo > aSortInfo( 1 ); NumberedSortingInfo* pInfo = aSortInfo.getArray(); pInfo[ 0 ].ColumnIndex = 1; - pInfo[ 0 ].Ascending = sal_True; + pInfo[ 0 ].Ascending = true; Reference < XAnyCompareFactory > xFactory; Reference< XDynamicResultSet > xDynamicResultSet; @@ -439,17 +439,17 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( ) @@ -459,17 +459,17 @@ bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( ) @@ -489,7 +489,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException, std::exception) @@ -509,7 +509,7 @@ OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLExcepti sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } bool ODatabaseMetaData::impl_isCatalogAtStart_throw( ) @@ -519,57 +519,57 @@ bool ODatabaseMetaData::impl_isCatalogAtStart_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( ) @@ -579,22 +579,22 @@ bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( ) @@ -609,7 +609,7 @@ bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( ) @@ -619,7 +619,7 @@ bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException, std::exception) @@ -657,122 +657,122 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLExcept sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( ) @@ -782,72 +782,72 @@ bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException, std::exception) @@ -937,27 +937,27 @@ OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException, std::exception) @@ -985,12 +985,12 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType ) switch(setType) { case ResultSetType::FORWARD_ONLY: - return sal_True; + return true; case ResultSetType::SCROLL_INSENSITIVE: case ResultSetType::SCROLL_SENSITIVE: break; } - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException, std::exception) @@ -998,62 +998,62 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 set switch(setType) { case ResultSetType::FORWARD_ONLY: - return sal_True; + return true; case ResultSetType::SCROLL_INSENSITIVE: case ResultSetType::SCROLL_SENSITIVE: break; } - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/file/FDriver.cxx b/connectivity/source/drivers/file/FDriver.cxx index 72e02c57ddab..4a47b4a391de 100644 --- a/connectivity/source/drivers/file/FDriver.cxx +++ b/connectivity/source/drivers/file/FDriver.cxx @@ -123,42 +123,42 @@ Sequence< DriverPropertyInfo > SAL_CALL OFileDriver::getPropertyInfo( const OUSt aDriverInfo.push_back(DriverPropertyInfo( OUString("CharSet") ,OUString("CharSet of the database.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("Extension") ,OUString("Extension of the file format.") - ,sal_False + ,false ,OUString(".*") ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ShowDeleted") ,OUString("Display inactive records.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("EnableSQL92Check") ,OUString("Use SQL92 naming constraints.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("UseRelativePath") ,OUString("Handle the connection url as relative path.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("URL") ,OUString("The URL of the database document which is used to create an absolute path.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index 523651bc0686..257f83961bbd 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -1483,7 +1483,7 @@ void OResultSet::setBoundedColumns(const OValueRefRow& _rRow, if ( aCase(sTableColumnName, sSelectColumnRealName) && !(*aRowIter)->isBound() && aSelectIters.end() == aSelectIters.find(aIter) ) { - aSelectIters.insert(IterMap::value_type(aIter,sal_True)); + aSelectIters.insert(IterMap::value_type(aIter,true)); if(_bSetColumnMapping) { sal_Int32 nSelectColumnPos = aIter - _rxColumns->get().begin() + 1; @@ -1529,7 +1529,7 @@ void OResultSet::setBoundedColumns(const OValueRefRow& _rRow, if ( xNameAccess->hasByName( sSelectColumnRealName ) ) { - aSelectIters.insert(IterMap::value_type(aIter,sal_True)); + aSelectIters.insert(IterMap::value_type(aIter,true)); sal_Int32 nSelectColumnPos = aIter - _rxColumns->get().begin() + 1; const OUString* pBegin = aSelectColumns.getConstArray(); const OUString* pEnd = pBegin + aSelectColumns.getLength(); diff --git a/connectivity/source/drivers/file/FResultSetMetaData.cxx b/connectivity/source/drivers/file/FResultSetMetaData.cxx index 82c501045d23..21aeeedf25fa 100644 --- a/connectivity/source/drivers/file/FResultSetMetaData.cxx +++ b/connectivity/source/drivers/file/FResultSetMetaData.cxx @@ -76,7 +76,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, Ru sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } @@ -130,12 +130,12 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLEx sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 /*setCatalogcolumn*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) @@ -160,7 +160,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLE sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx index f61c06e33875..1a5003972186 100644 --- a/connectivity/source/drivers/file/FStatement.cxx +++ b/connectivity/source/drivers/file/FStatement.cxx @@ -702,9 +702,9 @@ void OStatement_Base::SetAssignValue(const OUString& aColumnName, case DataType::BIT: if (aValue.equalsIgnoreAsciiCase("TRUE") || aValue[0] == '1') - *(m_aAssignValues->get())[nId] = sal_True; + *(m_aAssignValues->get())[nId] = true; else if (aValue.equalsIgnoreAsciiCase("FALSE") || aValue[0] == '0') - *(m_aAssignValues->get())[nId] = sal_False; + *(m_aAssignValues->get())[nId] = false; else throwFunctionSequenceException(*this); break; diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 309486dc84f4..7f4d2a81d62d 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -328,7 +328,7 @@ void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyV void Connection::notifyDatabaseModified() { if (m_xParentDocument.is()) // Only true in embedded mode - m_xParentDocument->setModified(sal_True); + m_xParentDocument->setModified(true); } //----- XServiceInfo --------------------------------------------------------- diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx index dac2b84f9d1a..ad52c01d646a 100644 --- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx @@ -69,22 +69,22 @@ OUString SAL_CALL ODatabaseMetaData::getCatalogTerm() throw(SQLException, Runtim sal_Bool SAL_CALL ODatabaseMetaData::isCatalogAtStart() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs() throw(SQLException, RuntimeException, std::exception) @@ -96,43 +96,43 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs() throw(SQL sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } //----- Schema Info -- UNSUPPORTED -------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInDataManipulation() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInTableDefinitions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength() @@ -219,7 +219,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect( ) throw(SQLExceptio sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } // ---- Identifiers ----------------------------------------------------------- @@ -233,13 +233,13 @@ OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers() @@ -248,13 +248,13 @@ sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers() // TODO: confirm this -- the documentation is highly ambiguous // However it seems this should be true as quoted identifiers ARE // stored mixed case. - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } // ---- Unquoted Identifiers ------------------------------------------------- @@ -262,81 +262,81 @@ sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } // ---- SQL Feature Support --------------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithAddColumn() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithDropColumn() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable() throw(SQLException, RuntimeException, std::exception) { // TODO: true if embedded, but unsure about remote server - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 fromType, @@ -345,25 +345,25 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 fromType, { (void) fromType; (void) toType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException, std::exception) @@ -374,7 +374,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException, std::exception) @@ -385,68 +385,68 @@ OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLExcepti sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } // ---- Data definition stuff ------------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData:: supportsDataDefinitionAndDataManipulationTransactions() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } //----- Transaction Support -------------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback() throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions() throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( @@ -468,17 +468,17 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation() sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; // should be supported at least + return true; // should be supported at least } sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException, std::exception) @@ -495,12 +495,12 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLExc sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) @@ -515,110 +515,110 @@ sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, Runt sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException, std::exception) { // Unsure - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { // Unsure - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL ODatabaseMetaData::getURL() throw(SQLException, RuntimeException, std::exception) @@ -706,17 +706,17 @@ OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException, std::exception) @@ -748,9 +748,9 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType) switch (setType) { case ResultSetType::FORWARD_ONLY: - return sal_True; + return true; default: - return sal_False; + return false; } } @@ -761,70 +761,70 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( { if (aResultSetType == ResultSetType::FORWARD_ONLY && aConcurrency == ResultSetConcurrency::READ_ONLY) - return sal_True; + return true; else - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception) { (void) setType; - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates() throw(SQLException, RuntimeException, std::exception) { // No batch support in firebird - return sal_False; + return false; } uno::Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection() @@ -864,14 +864,14 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() // Common data aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue(); // Literal quote marks aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue(); // Literal quote marks - aRow[7] = new ORowSetValueDecorator(sal_True); // Nullable - aRow[8] = new ORowSetValueDecorator(sal_True); // Case sensitive - aRow[10] = new ORowSetValueDecorator(sal_False); // Is unsigned + aRow[7] = new ORowSetValueDecorator(true); // Nullable + aRow[8] = new ORowSetValueDecorator(true); // Case sensitive + aRow[10] = new ORowSetValueDecorator(false); // Is unsigned // FIXED_PREC_SCALE: docs state "can it be a money value? " however // in reality this causes Base to treat all numbers as money formatted // by default which is wrong (and formatting as money value is still // possible for all values). - aRow[11] = new ORowSetValueDecorator(sal_False); + aRow[11] = new ORowSetValueDecorator(false); // Localised Type Name -- TODO: implement (but can be null): aRow[13] = new ORowSetValueDecorator(); aRow[16] = new ORowSetValueDecorator(); // Unused @@ -885,7 +885,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_False); // Autoincrement + aRow[12] = new ORowSetValueDecorator(false); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale aResults.push_back(aRow); @@ -897,7 +897,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_False); // Autoincrement + aRow[12] = new ORowSetValueDecorator(false); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale aResults.push_back(aRow); @@ -907,7 +907,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_True); // Autoincrement + aRow[12] = new ORowSetValueDecorator(true); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale } @@ -932,7 +932,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_True); // Autoincrement + aRow[12] = new ORowSetValueDecorator(true); // Autoincrement } // SQL_FLOAT aRow[1] = new ORowSetValueDecorator(OUString("FLOAT")); @@ -965,7 +965,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_False); // Autoincrement + aRow[12] = new ORowSetValueDecorator(false); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale aResults.push_back(aRow); @@ -978,7 +978,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_False); // Autoincrement + aRow[12] = new ORowSetValueDecorator(false); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale aResults.push_back(aRow); @@ -991,7 +991,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::FULL)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_False); // Autoincrement + aRow[12] = new ORowSetValueDecorator(false); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale aResults.push_back(aRow); @@ -1004,7 +1004,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() aRow[6] = new ORowSetValueDecorator(); // Create Params aRow[9] = new ORowSetValueDecorator( sal_Int16(ColumnSearch::NONE)); // Searchable - aRow[12] = new ORowSetValueDecorator(sal_False); // Autoincrement + aRow[12] = new ORowSetValueDecorator(false); // Autoincrement aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale aResults.push_back(aRow); diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx index edb09269b963..acfeb8b2998c 100644 --- a/connectivity/source/drivers/firebird/ResultSet.cxx +++ b/connectivity/source/drivers/firebird/ResultSet.cxx @@ -134,19 +134,19 @@ sal_Bool SAL_CALL OResultSet::next() throw(SQLException, RuntimeException, std:: m_pSqlda); if (fetchStat == 0) // SUCCESSFUL { - return sal_True; + return true; } else if (fetchStat == 100L) // END OF DATASET { m_bIsAfterLastRow = true; - return sal_False; + return false; } else { SAL_WARN("connectivity.firebird", "Error when fetching data"); // Throws sql exception as appropriate evaluateStatusVector(m_statusVector, "isc_dsql_fetch", *this); - return sal_False; + return false; } } @@ -154,14 +154,14 @@ sal_Bool SAL_CALL OResultSet::previous() throw(SQLException, RuntimeException, s { ::dbtools::throwFunctionNotSupportedSQLException("previous not supported in firebird", *this); - return sal_False; + return false; } sal_Bool SAL_CALL OResultSet::isLast() throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionNotSupportedSQLException("isLast not supported in firebird", *this); - return sal_False; + return false; } sal_Bool SAL_CALL OResultSet::isBeforeFirst() throw(SQLException, RuntimeException, std::exception) @@ -219,13 +219,13 @@ sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std: } else if (m_currentRow == 1 && !m_bIsAfterLastRow) { - return sal_True; + return true; } else { ::dbtools::throwFunctionNotSupportedSQLException("first not supported in firebird", *this); - return sal_False; + return false; } } @@ -235,7 +235,7 @@ sal_Bool SAL_CALL OResultSet::last() throw(SQLException, RuntimeException, std:: // row, hence we can't actually move to last. ::dbtools::throwFunctionNotSupportedSQLException("last not supported in firebird", *this); - return sal_False; + return false; } sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow) throw(SQLException, RuntimeException, std::exception) @@ -252,7 +252,7 @@ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow) throw(SQLException, Runti { ::dbtools::throwFunctionNotSupportedSQLException("absolute not supported in firebird", *this); - return sal_False; + return false; } } @@ -266,15 +266,15 @@ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) throw(SQLException, Runtim while (row--) { if (!next()) - return sal_False; + return false; } - return sal_True; + return true; } else { ::dbtools::throwFunctionNotSupportedSQLException("relative not supported in firebird", *this); - return sal_False; + return false; } } @@ -720,20 +720,20 @@ sal_Bool SAL_CALL OResultSet::rowDeleted() throw(SQLException, RuntimeException, { ::dbtools::throwFunctionNotSupportedSQLException("rowDeleted not supported in firebird", *this); - return sal_False; + return false; } sal_Bool SAL_CALL OResultSet::rowInserted() throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionNotSupportedSQLException("rowInserted not supported in firebird", *this); - return sal_False; + return false; } sal_Bool SAL_CALL OResultSet::rowUpdated() throw(SQLException, RuntimeException, std::exception) { ::dbtools::throwFunctionNotSupportedSQLException("rowUpdated not supported in firebird", *this); - return sal_False; + return false; } void SAL_CALL OResultSet::refreshRow() throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx index df5ef4eab6f9..05cd8a7db10f 100644 --- a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx +++ b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx @@ -69,7 +69,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column) // there remains some ambiguity if there is another mixed-case-named column // of the same name. For safety always assume case insensitive. (void) column; - return sal_True; + return true; } OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) @@ -135,7 +135,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { (void) column; - return sal_False; + return false; } sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column) @@ -143,7 +143,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column) { // Supported internally but no way of determining this here. (void) column; - return sal_False; + return false; } @@ -152,7 +152,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column) { // Unsigned values aren't supported in firebird. (void) column; - return sal_True; + return true; } sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column) @@ -183,7 +183,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column) { // TODO: Can the column be used as part of a where clause? Assume yes (void) column; - return sal_True; + return true; } sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column) diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.cxx b/connectivity/source/drivers/firebird/StatementCommonBase.cxx index 61a963c30176..85af7aa9fd1f 100644 --- a/connectivity/source/drivers/firebird/StatementCommonBase.cxx +++ b/connectivity/source/drivers/firebird/StatementCommonBase.cxx @@ -232,7 +232,7 @@ uno::Reference< XResultSet > SAL_CALL OStatementCommonBase::getResultSet() throw sal_Bool SAL_CALL OStatementCommonBase::getMoreResults() throw(SQLException, RuntimeException, std::exception) { // TODO: verify we really can't support this - return sal_False; + return false; // MutexGuard aGuard( m_aMutex ); // checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed); } diff --git a/connectivity/source/drivers/flat/EDriver.cxx b/connectivity/source/drivers/flat/EDriver.cxx index c227ee3d57e5..66dc93a8af07 100644 --- a/connectivity/source/drivers/flat/EDriver.cxx +++ b/connectivity/source/drivers/flat/EDriver.cxx @@ -91,35 +91,35 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString aDriverInfo.push_back(DriverPropertyInfo( OUString("FieldDelimiter") ,OUString("Field separator.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("HeaderLine") ,OUString("Text contains headers.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("StringDelimiter") ,OUString("Text separator.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("DecimalDelimiter") ,OUString("Decimal separator.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ThousandDelimiter") ,OUString("Thousands separator.") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); diff --git a/connectivity/source/drivers/flat/EResultSet.cxx b/connectivity/source/drivers/flat/EResultSet.cxx index 929bde13e9ee..93b853a731d6 100644 --- a/connectivity/source/drivers/flat/EResultSet.cxx +++ b/connectivity/source/drivers/flat/EResultSet.cxx @@ -134,7 +134,7 @@ sal_Int32 SAL_CALL OFlatResultSet::compareBookmarks( const Any& lhs, const Any& sal_Bool SAL_CALL OFlatResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 SAL_CALL OFlatResultSet::hashBookmark( const Any& bookmark ) throw( SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 2d2d1ebbe58c..8ecbc3269147 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -387,7 +387,7 @@ namespace connectivity sal_Bool SAL_CALL ODriverDelegator::acceptsURL( const OUString& url ) throw (SQLException, RuntimeException, std::exception) { - sal_Bool bEnabled = sal_False; + sal_Bool bEnabled = false; javaFrameworkError e = jfw_getEnabled(&bEnabled); switch (e) { case JFW_E_NONE: @@ -415,21 +415,21 @@ namespace connectivity aDriverInfo.push_back(DriverPropertyInfo( OUString("Storage") ,OUString("Defines the storage where the database will be stored.") - ,sal_True + ,true ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("URL") ,OUString("Defines the url of the data source.") - ,sal_True + ,true ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("AutoRetrievingStatement") ,OUString("Defines the statement which will be executed to retrieve auto increment values.") - ,sal_False + ,false ,OUString("CALL IDENTITY()") ,Sequence< OUString >()) ); @@ -655,7 +655,7 @@ namespace connectivity xStmt->execute( "SET WRITE_DELAY 0" ); bool bPreviousAutoCommit = xConnection->getAutoCommit(); - xConnection->setAutoCommit( sal_False ); + xConnection->setAutoCommit( false ); xConnection->commit(); xConnection->setAutoCommit( bPreviousAutoCommit ); diff --git a/connectivity/source/drivers/hsqldb/HStorageMap.cxx b/connectivity/source/drivers/hsqldb/HStorageMap.cxx index c52805ee5a60..cad5fbde4beb 100644 --- a/connectivity/source/drivers/hsqldb/HStorageMap.cxx +++ b/connectivity/source/drivers/hsqldb/HStorageMap.cxx @@ -167,7 +167,7 @@ namespace connectivity OUString aStr; if ( jstr ) { - jboolean bCopy(sal_True); + jboolean bCopy(true); const jchar* pChar = env->GetStringChars(jstr,&bCopy); jsize len = env->GetStringLength(jstr); aStr = OUString( diff --git a/connectivity/source/drivers/jdbc/Blob.cxx b/connectivity/source/drivers/jdbc/Blob.cxx index a22092553e20..e264e4612274 100644 --- a/connectivity/source/drivers/jdbc/Blob.cxx +++ b/connectivity/source/drivers/jdbc/Blob.cxx @@ -81,7 +81,7 @@ sal_Int64 SAL_CALL java_sql_Blob::length( ) throw(::com::sun::star::sdbc::SQLEx ThrowSQLException(t.pEnv,*this); if(out) { - jboolean p = sal_False; + jboolean p = false; aSeq.realloc(t.pEnv->GetArrayLength(out)); memcpy(aSeq.getArray(),t.pEnv->GetByteArrayElements(out,&p),aSeq.getLength()); t.pEnv->DeleteLocalRef(out); diff --git a/connectivity/source/drivers/jdbc/CallableStatement.cxx b/connectivity/source/drivers/jdbc/CallableStatement.cxx index 0858b4b9de89..dfa44629389f 100644 --- a/connectivity/source/drivers/jdbc/CallableStatement.cxx +++ b/connectivity/source/drivers/jdbc/CallableStatement.cxx @@ -103,7 +103,7 @@ Sequence< sal_Int8 > SAL_CALL java_sql_CallableStatement::getBytes( sal_Int32 co jbyteArray out = static_cast<jbyteArray>(callObjectMethodWithIntArg(t.pEnv,"getBytes","(I)[B", mID, columnIndex)); if (out) { - jboolean p = sal_False; + jboolean p = false; aSeq.realloc(t.pEnv->GetArrayLength(out)); memcpy(aSeq.getArray(),t.pEnv->GetByteArrayElements(out,&p),aSeq.getLength()); t.pEnv->DeleteLocalRef(out); diff --git a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx index 8314dd8aed1f..90a7952c3561 100644 --- a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx @@ -993,7 +993,7 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsConvert( sal_Int32 fromType static const char* pMethodName = "supportsConvert"; m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD_ARG2, pMethodName, fromType, toType ); - jboolean out( sal_False ); + jboolean out( false ); SDBThreadAttach t; { @@ -1335,7 +1335,7 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsResultSetConcurrency( sal_I static const char* pMethodName = "supportsResultSetConcurrency"; m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD_ARG2, pMethodName, setType, concurrency ); - jboolean out( sal_False ); + jboolean out( false ); SDBThreadAttach t; { diff --git a/connectivity/source/drivers/jdbc/InputStream.cxx b/connectivity/source/drivers/jdbc/InputStream.cxx index 2ca356cc8d78..130f878783b4 100644 --- a/connectivity/source/drivers/jdbc/InputStream.cxx +++ b/connectivity/source/drivers/jdbc/InputStream.cxx @@ -97,7 +97,7 @@ sal_Int32 SAL_CALL java_io_InputStream::readBytes( ::com::sun::star::uno::Sequen ThrowRuntimeException(t.pEnv,*this); if(out > 0) { - jboolean p = sal_False; + jboolean p = false; aData.realloc ( out ); memcpy(aData.getArray(),t.pEnv->GetByteArrayElements(pByteArray,&p),out); } diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx index ee6175379375..8c6db0423355 100644 --- a/connectivity/source/drivers/jdbc/JDriver.cxx +++ b/connectivity/source/drivers/jdbc/JDriver.cxx @@ -108,7 +108,7 @@ sal_Bool SAL_CALL java_sql_Driver::acceptsURL( const OUString& url ) throw(SQLEx { // don't ask the real driver for the url // I feel responsible for all jdbc url's - sal_Bool bEnabled = sal_False; + sal_Bool bEnabled = false; javaFrameworkError e = jfw_getEnabled(&bEnabled); switch (e) { case JFW_E_NONE: @@ -140,91 +140,91 @@ Sequence< DriverPropertyInfo > SAL_CALL java_sql_Driver::getPropertyInfo( const aDriverInfo.push_back(DriverPropertyInfo( OUString("JavaDriverClass") ,OUString("The JDBC driver class name.") - ,sal_True + ,true ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("JavaDriverClassPath") ,OUString("The class path where to look for the JDBC driver.") - ,sal_True + ,true ,OUString( "" ) ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("SystemProperties") ,OUString("Additional properties to set at java.lang.System before loading the driver.") - ,sal_True + ,true ,OUString( "" ) ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ParameterNameSubstitution") ,OUString("Change named parameters with '?'.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("IgnoreDriverPrivileges") ,OUString("Ignore the privileges from the database driver.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("IsAutoRetrievingEnabled") ,OUString("Retrieve generated values.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("AutoRetrievingStatement") ,OUString("Auto-increment statement.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("GenerateASBeforeCorrelationName") ,OUString("Generate AS before table correlation names.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("IgnoreCurrency") ,OUString("Ignore the currency field from the ResultsetMetaData.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("EscapeDateTime") ,OUString("Escape date time format.") - ,sal_False + ,false ,OUString( "true" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("TypeInfoSettings") ,OUString("Defines how the type info of the database metadata should be manipulated.") - ,sal_False + ,false ,OUString( ) ,Sequence< OUString > ()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ImplicitCatalogRestriction") ,OUString("The catalog which should be used in getTables calls, when the caller passed NULL.") - ,sal_False + ,false ,OUString( ) ,Sequence< OUString > ()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ImplicitSchemaRestriction") ,OUString("The schema which should be used in getTables calls, when the caller passed NULL.") - ,sal_False + ,false ,OUString( ) ,Sequence< OUString > ()) ); diff --git a/connectivity/source/drivers/jdbc/JStatement.cxx b/connectivity/source/drivers/jdbc/JStatement.cxx index 76f08c8f078f..a04f4d29613c 100644 --- a/connectivity/source/drivers/jdbc/JStatement.cxx +++ b/connectivity/source/drivers/jdbc/JStatement.cxx @@ -223,7 +223,7 @@ sal_Bool SAL_CALL java_sql_Statement_Base::execute( const OUString& sql ) throw( ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(java_sql_Statement_BASE::rBHelper.bDisposed); - jboolean out(sal_False); + jboolean out(false); SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); { createStatement(t.pEnv); @@ -325,7 +325,7 @@ Sequence< sal_Int32 > SAL_CALL java_sql_Statement::executeBatch( ) throw(::com: jintArray out = static_cast<jintArray>(callObjectMethod(t.pEnv,"executeBatch","()[I", mID)); if (out) { - jboolean p = sal_False; + jboolean p = false; aSeq.realloc(t.pEnv->GetArrayLength(out)); memcpy(aSeq.getArray(),t.pEnv->GetIntArrayElements(out,&p),aSeq.getLength()); t.pEnv->DeleteLocalRef(out); @@ -663,7 +663,7 @@ sal_Bool java_sql_Statement_Base::convertFastPropertyValue( { DBG_UNHANDLED_EXCEPTION(); } - return sal_False; + return false; } void java_sql_Statement_Base::setFastPropertyValue_NoBroadcast( diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx index 2a354270da17..ee79b4153b23 100644 --- a/connectivity/source/drivers/jdbc/Object.cxx +++ b/connectivity/source/drivers/jdbc/Object.cxx @@ -252,7 +252,7 @@ void java_lang_Object::obtainMethodId_throwRuntime(JNIEnv* _pEnv,const char* _pM bool java_lang_Object::callBooleanMethod( const char* _pMethodName, jmethodID& _inout_MethodID ) const { - jboolean out( sal_False ); + jboolean out( false ); SDBThreadAttach t; OSL_ENSURE( t.pEnv, "java_lang_Object::callBooleanMethod: no Java environment anymore!" ); @@ -266,7 +266,7 @@ bool java_lang_Object::callBooleanMethod( const char* _pMethodName, jmethodID& _ bool java_lang_Object::callBooleanMethodWithIntArg( const char* _pMethodName, jmethodID& _inout_MethodID, sal_Int32 _nArgument ) const { - jboolean out( sal_False ); + jboolean out( false ); SDBThreadAttach t; OSL_ENSURE( t.pEnv, "java_lang_Object::callBooleanMethodWithIntArg: no Java environment anymore!" ); obtainMethodId_throwSQL(t.pEnv, _pMethodName,"(I)Z", _inout_MethodID); diff --git a/connectivity/source/drivers/jdbc/PreparedStatement.cxx b/connectivity/source/drivers/jdbc/PreparedStatement.cxx index 3a367e6622f1..adc7aa4a7bc3 100644 --- a/connectivity/source/drivers/jdbc/PreparedStatement.cxx +++ b/connectivity/source/drivers/jdbc/PreparedStatement.cxx @@ -619,7 +619,7 @@ void SAL_CALL java_sql_PreparedStatement::addBatch( ) throw(::com::sun::star::sd jintArray out = static_cast<jintArray>(callObjectMethod(t.pEnv,"executeBatch","()[I", mID)); if(out) { - jboolean p = sal_False; + jboolean p = false; aSeq.realloc(t.pEnv->GetArrayLength(out)); memcpy(aSeq.getArray(),t.pEnv->GetIntArrayElements(out,&p),aSeq.getLength()); t.pEnv->DeleteLocalRef(out); diff --git a/connectivity/source/drivers/jdbc/ResultSet.cxx b/connectivity/source/drivers/jdbc/ResultSet.cxx index 24df4633a92f..7ce1751f6ef1 100644 --- a/connectivity/source/drivers/jdbc/ResultSet.cxx +++ b/connectivity/source/drivers/jdbc/ResultSet.cxx @@ -179,7 +179,7 @@ Sequence< sal_Int8 > SAL_CALL java_sql_ResultSet::getBytes( sal_Int32 columnInde jbyteArray out = static_cast<jbyteArray>(callObjectMethodWithIntArg(t.pEnv,"getBytes","(I)[B", mID, columnIndex)); if (out) { - jboolean p = sal_False; + jboolean p = false; aSeq.realloc(t.pEnv->GetArrayLength(out)); memcpy(aSeq.getArray(),t.pEnv->GetByteArrayElements(out,&p),aSeq.getLength()); t.pEnv->DeleteLocalRef(out); diff --git a/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx b/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx index d719faed91d8..c465d5df981c 100644 --- a/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx +++ b/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx @@ -133,7 +133,7 @@ OUString SAL_CALL java_sql_ResultSetMetaData::getColumnServiceName( sal_Int32 co sal_Bool SAL_CALL java_sql_ResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) { if ( m_pConnection->isIgnoreCurrencyEnabled() ) - return sal_False; + return false; static jmethodID mID(nullptr); return callBooleanMethodWithIntArg( "isCurrency", mID,column ); } diff --git a/connectivity/source/drivers/jdbc/tools.cxx b/connectivity/source/drivers/jdbc/tools.cxx index 59cf6a138f75..f07197b9fec3 100644 --- a/connectivity/source/drivers/jdbc/tools.cxx +++ b/connectivity/source/drivers/jdbc/tools.cxx @@ -161,7 +161,7 @@ OUString connectivity::JavaString2String(JNIEnv *pEnv,jstring Str) OUString aStr; if(Str) { - jboolean bCopy(sal_True); + jboolean bCopy(true); const jchar* pChar = pEnv->GetStringChars(Str,&bCopy); jsize len = pEnv->GetStringLength(Str); aStr = OUString(reinterpret_cast<sal_Unicode const *>(pChar), len); @@ -221,7 +221,7 @@ jobject connectivity::createByteInputStream(const ::com::sun::star::uno::Referen jbyteArray pByteArray = t.pEnv->NewByteArray(length); Sequence< sal_Int8 > aData; x->readBytes(aData,length); - jboolean p = sal_False; + jboolean p = false; memcpy(t.pEnv->GetByteArrayElements(pByteArray,&p),aData.getArray(),aData.getLength()); jobject out = t.pEnv->NewObject( clazz, mID,pByteArray); t.pEnv->DeleteLocalRef(pByteArray); @@ -248,7 +248,7 @@ jobject connectivity::createCharArrayReader(const ::com::sun::star::uno::Referen jcharArray pCharArray = t.pEnv->NewCharArray(length); Sequence< sal_Int8 > aData; x->readBytes(aData,length); - jboolean p = sal_False; + jboolean p = false; memcpy(t.pEnv->GetCharArrayElements(pCharArray,&p),aData.getArray(),aData.getLength()); jobject out = t.pEnv->NewObject( clazz, mID,pCharArray); t.pEnv->DeleteLocalRef(pCharArray); diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index 688da518f2fb..633f84e3011f 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -243,7 +243,7 @@ sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeExce // 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 OConnection::commit( ) throw(SQLException, RuntimeException, std::exception) @@ -291,7 +291,7 @@ void SAL_CALL OConnection::setReadOnly( sal_Bool /*readOnly*/ ) throw(SQLExcepti sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) { // return if your connection to readonly - return sal_False; + return false; } void SAL_CALL OConnection::setCatalog( const OUString& /*catalog*/ ) throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx index f8b60da0f32d..26b103ce5331 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx @@ -218,17 +218,17 @@ sal_Int32 ODatabaseMetaData::impl_getMaxTablesInSelect_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( ) @@ -238,17 +238,17 @@ bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( ) @@ -269,7 +269,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException, std::exception) @@ -292,7 +292,7 @@ OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLExcepti sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } bool ODatabaseMetaData::impl_isCatalogAtStart_throw( ) @@ -302,58 +302,58 @@ bool ODatabaseMetaData::impl_isCatalogAtStart_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException, std::exception) { //We support create table - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( ) @@ -363,22 +363,22 @@ bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; // should be supported at least + return true; // should be supported at least } sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( ) @@ -393,7 +393,7 @@ bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( ) @@ -403,7 +403,7 @@ bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException, std::exception) @@ -425,28 +425,28 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLExcept sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException, std::exception) { // We allow you to select from any table. - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException, std::exception) @@ -454,98 +454,98 @@ sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeE //we support insert/update/delete now //But we have to set this to return sal_True otherwise the UI will add create "table/edit table" //entry to the popup menu. We should avoid them. - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException, std::exception) { // Support added for this. - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( ) @@ -556,72 +556,72 @@ bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( ) sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException, std::exception) @@ -722,27 +722,27 @@ OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException, std::exception) @@ -771,62 +771,62 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLExceptio sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 /*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } // here follow all methods which return a resultset diff --git a/connectivity/source/drivers/mork/MPreparedStatement.cxx b/connectivity/source/drivers/mork/MPreparedStatement.cxx index 2591cda606ec..ff59e956ccfb 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.cxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.cxx @@ -490,7 +490,7 @@ sal_Int32 SAL_CALL OPreparedStatement::getUpdateCount( ) throw(::com::sun::star sal_Bool SAL_CALL OPreparedStatement::getMoreResults( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) { - return sal_False; + return false; } diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx index 518da920b5fc..e84eacd891e8 100644 --- a/connectivity/source/drivers/mork/MResultSet.cxx +++ b/connectivity/source/drivers/mork/MResultSet.cxx @@ -182,7 +182,7 @@ sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 /*columnIndex*/ ) throw(SQLE { ResultSetEntryGuard aGuard( *this ); m_bWasNull = true; - return sal_False; + return false; } @@ -508,21 +508,21 @@ sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeExceptio { SAL_WARN("connectivity.mork", "OResultSet::rowDeleted() NOT IMPLEMENTED!"); ResultSetEntryGuard aGuard( *this ); - return sal_True;//return ((m_RowStates & RowStates_Deleted) == RowStates_Deleted) ; + return true;//return ((m_RowStates & RowStates_Deleted) == RowStates_Deleted) ; } sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException, std::exception) { SAL_WARN("connectivity.mork", "OResultSet::rowInserted() NOT IMPLEMENTED!"); ResultSetEntryGuard aGuard( *this ); - return sal_True;//return ((m_RowStates & RowStates_Inserted) == RowStates_Inserted); + return true;//return ((m_RowStates & RowStates_Inserted) == RowStates_Inserted); } sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException, std::exception) { SAL_WARN("connectivity.mork", "OResultSet::rowUpdated() NOT IMPLEMENTED!"); ResultSetEntryGuard aGuard( *this ); - return sal_True;// return ((m_RowStates & RowStates_Updated) == RowStates_Updated) ; + return true;// return ((m_RowStates & RowStates_Updated) == RowStates_Updated) ; } @@ -614,7 +614,7 @@ sal_Bool OResultSet::convertFastPropertyValue( default: ; } - return sal_False; + return false; } void OResultSet::setFastPropertyValue_NoBroadcast( @@ -1534,7 +1534,7 @@ sal_Bool OResultSet::moveToBookmark( const ::com::sun::star::uno::Any& bookmark sal_Int32 nCardNum = comphelper::getINT32(bookmark); m_nRowPos = getRowForCardNumber(nCardNum); fetchCurrentRow(); - return sal_True; + return true; } sal_Bool OResultSet::moveRelativeToBookmark( const ::com::sun::star::uno::Any& bookmark, sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) { @@ -1571,7 +1571,7 @@ sal_Bool OResultSet::hasOrderedBookmarks( ) throw(::com::sun::star::sdbc::SQLEx { ResultSetEntryGuard aGuard( *this ); SAL_INFO("connectivity.mork", "m_nRowPos = " << m_nRowPos); - return sal_True; + return true; } sal_Int32 OResultSet::hashBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) { diff --git a/connectivity/source/drivers/mork/MResultSetMetaData.cxx b/connectivity/source/drivers/mork/MResultSetMetaData.cxx index 52b63a3db086..d9e12bdaa127 100644 --- a/connectivity/source/drivers/mork/MResultSetMetaData.cxx +++ b/connectivity/source/drivers/mork/MResultSetMetaData.cxx @@ -67,7 +67,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, Ru sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } @@ -130,12 +130,12 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLEx sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception) @@ -163,10 +163,10 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 /*column*/ ) throw if ( !m_pTable || !m_pTable->getConnection() ) { OSL_FAIL( "OResultSetMetaData::isSearchable: suspicious: called without table or connection!" ); - return sal_False; + return false; } - return sal_True; + return true; } diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx index 9125247b8db5..be29345ae1e7 100644 --- a/connectivity/source/drivers/mysql/YDriver.cxx +++ b/connectivity/source/drivers/mysql/YDriver.cxx @@ -172,12 +172,12 @@ namespace connectivity aProps.push_back( PropertyValue( OUString("Silent") ,0 - ,makeAny(sal_True) + ,makeAny(true) ,PropertyState_DIRECT_VALUE) ); aProps.push_back( PropertyValue( OUString("PreventGetVersionColumns") ,0 - ,makeAny(sal_True) + ,makeAny(true) ,PropertyState_DIRECT_VALUE) ); } else if ( _eType == D_JDBC ) @@ -202,7 +202,7 @@ namespace connectivity aProps.push_back( PropertyValue( OUString("IsAutoRetrievingEnabled") ,0 - ,makeAny(sal_True) + ,makeAny(true) ,PropertyState_DIRECT_VALUE) ); aProps.push_back( PropertyValue( OUString("AutoRetrievingStatement") @@ -212,7 +212,7 @@ namespace connectivity aProps.push_back( PropertyValue( OUString("ParameterNameSubstitution") ,0 - ,makeAny(sal_True) + ,makeAny(true) ,PropertyState_DIRECT_VALUE) ); return Sequence< PropertyValue >(aProps.data(), aProps.size()); } @@ -337,14 +337,14 @@ namespace connectivity aDriverInfo.push_back(DriverPropertyInfo( OUString("CharSet") ,OUString("CharSet of the database.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("SuppressVersionColumns") ,OUString("Display version columns (when available).") - ,sal_False + ,false ,OUString("0") ,aBoolean) ); @@ -354,7 +354,7 @@ namespace connectivity aDriverInfo.push_back(DriverPropertyInfo( OUString("JavaDriverClass") ,OUString("The JDBC driver class name.") - ,sal_True + ,true ,getJavaDriverClass(info) ,Sequence< OUString >()) ); @@ -364,14 +364,14 @@ namespace connectivity aDriverInfo.push_back(DriverPropertyInfo( OUString("LocalSocket") ,OUString("The file path of a socket to connect to a local MySQL server.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("NamedPipe") ,OUString("The name of a pipe to connect to a local MySQL server.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx index 54cfcefefe10..93b94c00bec9 100644 --- a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx +++ b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx @@ -839,7 +839,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQL sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(SQLException, RuntimeException, std::exception) { if(fromType == toType) - return sal_True; + return true; SQLUINTEGER nValue=0; switch(fromType) @@ -1694,22 +1694,22 @@ sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx index 72b525cfdf4f..80a28982065e 100644 --- a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx +++ b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx @@ -749,7 +749,7 @@ sal_Bool ODatabaseMetaDataResultSet::convertFastPropertyValue( default: ; } - return sal_False; + return false; } void ODatabaseMetaDataResultSet::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& /*rValue*/ ) throw (Exception, std::exception) diff --git a/connectivity/source/drivers/odbc/ODriver.cxx b/connectivity/source/drivers/odbc/ODriver.cxx index a727ee643ef6..0272090c1b9a 100644 --- a/connectivity/source/drivers/odbc/ODriver.cxx +++ b/connectivity/source/drivers/odbc/ODriver.cxx @@ -127,63 +127,63 @@ Sequence< DriverPropertyInfo > SAL_CALL ODBCDriver::getPropertyInfo( const OUStr aDriverInfo.push_back(DriverPropertyInfo( OUString("CharSet") ,OUString("CharSet of the database.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("UseCatalog") ,OUString("Use catalog for file-based databases.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("SystemDriverSettings") ,OUString("Driver settings.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("ParameterNameSubstitution") ,OUString("Change named parameters with '?'.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("IgnoreDriverPrivileges") ,OUString("Ignore the privileges from the database driver.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("IsAutoRetrievingEnabled") ,OUString("Retrieve generated values.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("AutoRetrievingStatement") ,OUString("Auto-increment statement.") - ,sal_False + ,false ,OUString() ,Sequence< OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("GenerateASBeforeCorrelationName") ,OUString("Generate AS before table correlation names.") - ,sal_False + ,false ,OUString( "false" ) ,aBooleanValues) ); aDriverInfo.push_back(DriverPropertyInfo( OUString("EscapeDateTime") ,OUString("Escape date time format.") - ,sal_False + ,false ,OUString( "true" ) ,aBooleanValues) ); diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx index 2fa488782308..fa327bcfa22a 100644 --- a/connectivity/source/drivers/odbc/OResultSet.cxx +++ b/connectivity/source/drivers/odbc/OResultSet.cxx @@ -1210,7 +1210,7 @@ sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw( SQLE return m_nCurrentFetchState == SQL_SUCCESS || m_nCurrentFetchState == SQL_SUCCESS_WITH_INFO; } } - return sal_False; + return false; } sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw( SQLException, RuntimeException, std::exception) @@ -1239,7 +1239,7 @@ sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& lhs, const Any& rhs sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& /*bookmark*/ ) throw( SQLException, RuntimeException, std::exception) @@ -1453,7 +1453,7 @@ sal_Bool OResultSet::convertFastPropertyValue( default: ; } - return sal_False; + return false; } void OResultSet::setFastPropertyValue_NoBroadcast( diff --git a/connectivity/source/drivers/postgresql/pq_baseresultset.cxx b/connectivity/source/drivers/postgresql/pq_baseresultset.cxx index 8884e384e7e4..3bc05b87c33c 100644 --- a/connectivity/source/drivers/postgresql/pq_baseresultset.cxx +++ b/connectivity/source/drivers/postgresql/pq_baseresultset.cxx @@ -117,7 +117,7 @@ static ::cppu::IPropertyArrayHelper & getResultSetPropertyArrayHelper() ::cppu::UnoType<sal_Int32>::get() , 0 ) }; OSL_ASSERT( sizeof(aTable) / sizeof(Property) == BASERESULTSET_SIZE ); - static ::cppu::OPropertyArrayHelper arrayHelper( aTable, BASERESULTSET_SIZE, sal_True ); + static ::cppu::OPropertyArrayHelper arrayHelper( aTable, BASERESULTSET_SIZE, true ); pArrayHelper = &arrayHelper; } } @@ -296,7 +296,7 @@ sal_Bool BaseResultSet::absolute( sal_Int32 row ) throw (SQLException, RuntimeEx if( m_row < -1 ) m_row = -1; } - return sal_True; + return true; } sal_Bool BaseResultSet::relative( sal_Int32 rows ) throw (SQLException, RuntimeException, std::exception) @@ -309,7 +309,7 @@ sal_Bool BaseResultSet::relative( sal_Int32 rows ) throw (SQLException, RuntimeE m_row = m_rowCount; else if ( m_row < -1 ) m_row = -1; - return sal_True; + return true; } sal_Bool BaseResultSet::previous( ) throw (SQLException, RuntimeException, std::exception) @@ -329,17 +329,17 @@ void BaseResultSet::refreshRow( ) throw (SQLException, RuntimeException, std::e sal_Bool BaseResultSet::rowUpdated( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool BaseResultSet::rowInserted( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool BaseResultSet::rowDeleted( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } Reference< XInterface > BaseResultSet::getStatement() throw (SQLException, RuntimeException, std::exception) @@ -390,10 +390,10 @@ sal_Bool BaseResultSet::getBoolean( sal_Int32 columnIndex ) throw (SQLException, case 'y': case 'Y': - return sal_True; + return true; } } - return sal_False; + return false; } sal_Int8 BaseResultSet::getByte( sal_Int32 columnIndex ) diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 1a4d5e452db3..8d1d3b23568e 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -268,7 +268,7 @@ Reference< XStatement > Connection::createStatement() throw (SQLException, Runti Statement *stmt = new Statement( m_refMutex, this , &m_settings ); Reference< XStatement > ret( stmt ); ::rtl::ByteSequence id( 16 ); - rtl_createUuid( reinterpret_cast<sal_uInt8*>(id.getArray()), nullptr, sal_False ); + rtl_createUuid( reinterpret_cast<sal_uInt8*>(id.getArray()), nullptr, false ); m_myStatements[ id ] = Reference< XCloseable > ( stmt ); stmt->queryAdapter()->addReference( new ClosableReference( id, this ) ); return ret; @@ -285,7 +285,7 @@ Reference< XPreparedStatement > Connection::prepareStatement( const OUString& sq Reference< XPreparedStatement > ret = stmt; ::rtl::ByteSequence id( 16 ); - rtl_createUuid( reinterpret_cast<sal_uInt8*>(id.getArray()), nullptr, sal_False ); + rtl_createUuid( reinterpret_cast<sal_uInt8*>(id.getArray()), nullptr, false ); m_myStatements[ id ] = Reference< XCloseable > ( stmt ); stmt->queryAdapter()->addReference( new ClosableReference( id, this ) ); return ret; @@ -314,7 +314,7 @@ void Connection::setAutoCommit( sal_Bool ) throw (SQLException, RuntimeException sal_Bool Connection::getAutoCommit() throw (SQLException, RuntimeException, std::exception) { // UNSUPPORTED - return sal_True; + return true; } void Connection::commit() throw (SQLException, RuntimeException, std::exception) @@ -351,7 +351,7 @@ void Connection::setReadOnly( sal_Bool ) throw (SQLException, RuntimeException, sal_Bool Connection::isReadOnly() throw (SQLException, RuntimeException, std::exception) { // UNSUPPORTED - return sal_False; + return false; } void Connection::setCatalog( const OUString& ) diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index 22d3df1e8b9e..a7e32f7d611e 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -140,12 +140,12 @@ DatabaseMetaData::DatabaseMetaData( sal_Bool DatabaseMetaData::allProceduresAreCallable( ) throw (SQLException, RuntimeException, std::exception) { // TODO - return sal_False; + return false; } sal_Bool DatabaseMetaData::allTablesAreSelectable( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } OUString DatabaseMetaData::getURL( ) throw (SQLException, RuntimeException, std::exception) @@ -162,7 +162,7 @@ OUString DatabaseMetaData::getUserName( ) throw (SQLException, RuntimeException sal_Bool DatabaseMetaData::isReadOnly( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } @@ -171,7 +171,7 @@ sal_Bool DatabaseMetaData::nullsAreSortedHigh( ) throw (SQLException, RuntimeEx // Whether NULL values are considered, for sorting purposes, LARGER than any other value. // Specification: http://download.oracle.com/javase/6/docs/api/java/sql/DatabaseMetaData.html#nullsAreSortedHigh() // PostgreSQL behaviour: http://www.postgresql.org/docs/9.1/static/queries-order.html - return sal_True; + return true; } sal_Bool DatabaseMetaData::nullsAreSortedLow( ) throw (SQLException, RuntimeException, std::exception) @@ -181,12 +181,12 @@ sal_Bool DatabaseMetaData::nullsAreSortedLow( ) throw (SQLException, RuntimeExc sal_Bool DatabaseMetaData::nullsAreSortedAtStart( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::nullsAreSortedAtEnd( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } OUString DatabaseMetaData::getDatabaseProductName( ) throw (SQLException, RuntimeException, std::exception) @@ -226,56 +226,56 @@ sal_Bool DatabaseMetaData::usesLocalFiles( ) throw (SQLException, RuntimeExcept // database should not appear in the DatasourceBrowser // of OpenOffice.org API, otherwise false is returned." // So, hmmm, think about it. - return sal_False; + return false; } sal_Bool DatabaseMetaData::usesLocalFilePerTable( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsMixedCaseIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::storesUpperCaseIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::storesLowerCaseIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::storesMixedCaseIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::storesMixedCaseQuotedIdentifiers( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } @@ -583,98 +583,98 @@ OUString DatabaseMetaData::getExtraNameCharacters( ) throw (SQLException, Runti sal_Bool DatabaseMetaData::supportsAlterTableWithAddColumn( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsAlterTableWithDropColumn( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsColumnAliasing( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::nullPlusNonNullIsNull( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsTypeConversion( ) throw (SQLException, RuntimeException, std::exception) { // LEM: this is specifically whether the "CONVERT" function is supported // It seems that in PostgreSQL, that function is only for string encoding, so no. - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw (SQLException, RuntimeException, std::exception) { (void) fromType; (void) toType; - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsTableCorrelationNames( ) throw (SQLException, RuntimeException, std::exception) { // LEM: A correlation name is "bar" in "SELECT foo FROM qux [AS] bar WHERE ..." - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsExpressionsInOrderBy( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsOrderByUnrelated( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsGroupBy( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsGroupByUnrelated( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsGroupByBeyondSelect( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsLikeEscapeClause( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsMultipleResultSets( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsMultipleTransactions( ) throw (SQLException, RuntimeException, std::exception) { // Allows multiple transactions open at once (on different connections!) - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsNonNullableColumns( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsMinimumSQLGrammar( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsCoreSQLGrammar( ) throw (SQLException, RuntimeException, std::exception) @@ -685,50 +685,50 @@ sal_Bool DatabaseMetaData::supportsCoreSQLGrammar( ) throw (SQLException, Runti // Actually, Base assumes *also* support for aggregate functions "collect, fusion, intersection" // as soon as supportsCoreSQLGrammar() returns true. // Those are *not* Core SQL, though. They are in optional feature S271 "Basic multiset support" - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsExtendedSQLGrammar( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsANSI92IntermediateSQL( ) throw (SQLException, RuntimeException, std::exception) { // LEM: jdbc driver says not, although the comments in it seem old - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsANSI92FullSQL( ) throw (SQLException, RuntimeException, std::exception) { // LEM: jdbc driver says not, although the comments in it seem old - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw (SQLException, RuntimeException, std::exception) { // LEM: jdbc driver says yes, although comment says they are not sure what this means... - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsOuterJoins( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsFullOuterJoins( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsLimitedOuterJoins( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } @@ -749,7 +749,7 @@ OUString DatabaseMetaData::getCatalogTerm( ) throw (SQLException, RuntimeExcept sal_Bool DatabaseMetaData::isCatalogAtStart( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } OUString DatabaseMetaData::getCatalogSeparator( ) throw (SQLException, RuntimeException, std::exception) @@ -759,54 +759,54 @@ OUString DatabaseMetaData::getCatalogSeparator( ) throw (SQLException, RuntimeE sal_Bool DatabaseMetaData::supportsSchemasInDataManipulation( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSchemasInProcedureCalls( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSchemasInTableDefinitions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsCatalogsInDataManipulation( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsCatalogsInTableDefinitions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } @@ -817,80 +817,80 @@ sal_Bool DatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw (SQL sal_Bool DatabaseMetaData::supportsPositionedDelete( ) throw (SQLException, RuntimeException, std::exception) { // LEM: jdbc driver says not, although the comments in it seem old - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsPositionedUpdate( ) throw (SQLException, RuntimeException, std::exception) { // LEM: jdbc driver says not, although the comments in it seem old - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsSelectForUpdate( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsStoredProcedures( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSubqueriesInComparisons( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSubqueriesInExists( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSubqueriesInIns( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw (SQLException, RuntimeException, std::exception) { // LEM: jdbc driver says yes, although comment says they don't know what this means... - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsCorrelatedSubqueries( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsUnion( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsUnionAll( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 DatabaseMetaData::getMaxBinaryLiteralLength( ) throw (SQLException, RuntimeException, std::exception) @@ -1011,7 +1011,7 @@ sal_Bool DatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw (SQLException, R { // LEM: Err... PostgreSQL basically does not do BLOBs well // In any case, BLOBs do not change the maximal row length AFAIK - return sal_True; + return true; } sal_Int32 DatabaseMetaData::getMaxStatementLength( ) throw (SQLException, RuntimeException, std::exception) @@ -1049,7 +1049,7 @@ sal_Int32 DatabaseMetaData::getDefaultTransactionIsolation( ) throw (SQLExcepti sal_Bool DatabaseMetaData::supportsTransactions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw (SQLException, RuntimeException, std::exception) @@ -1058,30 +1058,30 @@ sal_Bool DatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) || level == com::sun::star::sdbc::TransactionIsolation::SERIALIZABLE || level == com::sun::star::sdbc::TransactionIsolation::READ_UNCOMMITTED || level == com::sun::star::sdbc::TransactionIsolation::REPEATABLE_READ) - return sal_True; + return true; else - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } ::com::sun::star::uno::Reference< XResultSet > DatabaseMetaData::getProcedures( @@ -2510,9 +2510,9 @@ sal_Bool DatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw (SQLException, RuntimeException, std::exception) { if ( setType == com::sun::star::sdbc::ResultSetType::SCROLL_SENSITIVE ) - return sal_False; + return false; else - return sal_True; + return true; } sal_Bool DatabaseMetaData::supportsResultSetConcurrency( @@ -2520,58 +2520,58 @@ sal_Bool DatabaseMetaData::supportsResultSetConcurrency( { (void) concurrency; if ( ! supportsResultSetType( setType ) ) - return sal_False; + return false; else - return sal_True; + return true; } sal_Bool DatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::ownDeletesAreVisible( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::ownInsertsAreVisible( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Bool DatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::othersDeletesAreVisible( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::othersInsertsAreVisible( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::updatesAreDetected( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::deletesAreDetected( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::insertsAreDetected( sal_Int32 /* setType */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool DatabaseMetaData::supportsBatchUpdates( ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } css::uno::Reference< XResultSet > DatabaseMetaData::getUDTs( const ::com::sun::star::uno::Any&, const OUString&, const OUString&, const ::com::sun::star::uno::Sequence< sal_Int32 >& ) throw (SQLException, RuntimeException, std::exception) diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index 5cd030c6178c..996bae9f97ff 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -207,8 +207,8 @@ public: { for( int i = 0 ; i < m_serviceNames.getLength() ; i ++ ) if( m_serviceNames[i] == ServiceName ) - return sal_True; - return sal_False; + return true; + return false; } Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) override diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx index 47142eac16a6..fe2c200752d3 100644 --- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx +++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx @@ -126,7 +126,7 @@ static ::cppu::IPropertyArrayHelper & getPreparedStatementPropertyArrayHelper() ::cppu::UnoType<sal_Int32>::get() , 0 ) }; OSL_ASSERT( sizeof(aTable)/ sizeof(Property) == PREPARED_STATEMENT_SIZE ); - static ::cppu::OPropertyArrayHelper arrayHelper( aTable, PREPARED_STATEMENT_SIZE, sal_True ); + static ::cppu::OPropertyArrayHelper arrayHelper( aTable, PREPARED_STATEMENT_SIZE, true ); pArrayHelper = &arrayHelper; } } @@ -811,7 +811,7 @@ sal_Int32 PreparedStatement::getUpdateCount( ) sal_Bool PreparedStatement::getMoreResults( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) { - return sal_False; + return false; } Reference< XResultSet > PreparedStatement::getGeneratedValues( ) diff --git a/connectivity/source/drivers/postgresql/pq_resultset.cxx b/connectivity/source/drivers/postgresql/pq_resultset.cxx index d282cb44fab3..fd2b4d435ea8 100644 --- a/connectivity/source/drivers/postgresql/pq_resultset.cxx +++ b/connectivity/source/drivers/postgresql/pq_resultset.cxx @@ -92,7 +92,7 @@ ResultSet::ResultSet( const ::rtl::Reference< RefCountedMutex > & refMutex, m_ppSettings( ppSettings ) { // LEM TODO: shouldn't these things be inherited from the statement or something like that? - sal_Bool b = sal_False; + sal_Bool b = false; // Positioned update/delete not supported, so no cursor name // Fetch direction and size are cursor-specific things, so not used now. // Fetch size not set diff --git a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx index e2510bb68f2b..2fab50b466bf 100644 --- a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx @@ -298,13 +298,13 @@ sal_Bool ResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw (SQLException, RuntimeException, std::exception) { (void) column; - return sal_True; // ??? hmm, numeric types or + return true; // ??? hmm, numeric types or } sal_Bool ResultSetMetaData::isSearchable( sal_Int32 column ) throw (SQLException, RuntimeException, std::exception) { (void) column; - return sal_True; // mmm, what types are not searchable ? + return true; // mmm, what types are not searchable ? } sal_Bool ResultSetMetaData::isCurrency( sal_Int32 column ) throw (SQLException, RuntimeException, std::exception) @@ -323,7 +323,7 @@ sal_Bool ResultSetMetaData::isSigned( sal_Int32 column ) throw (SQLException, RuntimeException, std::exception) { (void) column; - return sal_True; + return true; } sal_Int32 ResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) @@ -428,7 +428,7 @@ sal_Bool ResultSetMetaData::isReadOnly( sal_Int32 column ) throw (SQLException, RuntimeException, std::exception) { (void) column; - return sal_False; + return false; } sal_Bool ResultSetMetaData::isWritable( sal_Int32 column ) diff --git a/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.cxx b/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.cxx index cafb8b303ddb..627d988c6462 100644 --- a/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.cxx @@ -74,12 +74,12 @@ sal_Bool SequenceResultSetMetaData::isCaseSensitive( sal_Int32 /* column */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; // ??? hmm, numeric types or + return true; // ??? hmm, numeric types or } sal_Bool SequenceResultSetMetaData::isSearchable( sal_Int32 /* column */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; // mmm, what types are not searchable ? + return true; // mmm, what types are not searchable ? } sal_Bool SequenceResultSetMetaData::isCurrency( sal_Int32 column ) throw (SQLException, RuntimeException, std::exception) @@ -98,7 +98,7 @@ sal_Int32 SequenceResultSetMetaData::isNullable( sal_Int32 column ) sal_Bool SequenceResultSetMetaData::isSigned( sal_Int32 /* column */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_True; + return true; } sal_Int32 SequenceResultSetMetaData::getColumnDisplaySize( sal_Int32 /* column */ ) @@ -172,7 +172,7 @@ OUString SequenceResultSetMetaData::getColumnTypeName( sal_Int32 column ) sal_Bool SequenceResultSetMetaData::isReadOnly( sal_Int32 /* column */ ) throw (SQLException, RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SequenceResultSetMetaData::isWritable( sal_Int32 column ) diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index ebaabb5264df..28c4c46504d3 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -144,7 +144,7 @@ static ::cppu::IPropertyArrayHelper & getStatementPropertyArrayHelper() ::cppu::UnoType<sal_Int32>::get() , 0 ) }; OSL_ASSERT( sizeof(aTable)/ sizeof(Property) == STATEMENT_SIZE ); - static ::cppu::OPropertyArrayHelper arrayHelper( aTable, STATEMENT_SIZE, sal_True ); + static ::cppu::OPropertyArrayHelper arrayHelper( aTable, STATEMENT_SIZE, true ); pArrayHelper = &arrayHelper; } } @@ -971,7 +971,7 @@ sal_Int32 Statement::getUpdateCount( ) sal_Bool Statement::getMoreResults( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) { - return sal_False; + return false; } diff --git a/connectivity/source/drivers/postgresql/pq_statics.cxx b/connectivity/source/drivers/postgresql/pq_statics.cxx index 66a399bdedcd..b680934c7b9e 100644 --- a/connectivity/source/drivers/postgresql/pq_statics.cxx +++ b/connectivity/source/drivers/postgresql/pq_statics.cxx @@ -92,7 +92,7 @@ static cppu::IPropertyArrayHelper * createPropertyArrayHelper( { seq[i] = Property( props[i].name, i, props[i].type, attr ); } - return new cppu::OPropertyArrayHelper( seq, sal_True ); + return new cppu::OPropertyArrayHelper( seq, true ); } static cppu::IPropertyArrayHelper * createPropertyArrayHelper( @@ -103,7 +103,7 @@ static cppu::IPropertyArrayHelper * createPropertyArrayHelper( { seq[i] = Property( props[i].name, i, props[i].type, props[i].attribute ); } - return new cppu::OPropertyArrayHelper( seq, sal_True ); + return new cppu::OPropertyArrayHelper( seq, true ); } Statics & getStatics() diff --git a/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx b/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx index 338952beace0..4131e3239a00 100644 --- a/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx +++ b/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx @@ -94,7 +94,7 @@ protected: // Why is an updatable ResultSet a sequenceresultset in the first place? // This seems to imply that the whole data is fetched once and kept in memory. BAAAAD. // LEM TODO: shouldn't these things be inherited from the statement or something like that? - sal_Bool b = sal_False; + sal_Bool b = false; // Positioned update/delete not supported, so no cursor name // Fetch direction and size are cursor-specific things, so not used now. // Fetch size not set diff --git a/connectivity/source/drivers/postgresql/pq_xbase.cxx b/connectivity/source/drivers/postgresql/pq_xbase.cxx index a29b2a3db49e..733b32bf399d 100644 --- a/connectivity/source/drivers/postgresql/pq_xbase.cxx +++ b/connectivity/source/drivers/postgresql/pq_xbase.cxx @@ -91,7 +91,7 @@ sal_Bool ReflectionBase::convertFastPropertyValue( rOldValue = m_values[nHandle]; rConvertedValue = rValue; // TODO !!! implement correct conversion ! m_values[nHandle] = rValue; - return sal_True; + return true; } void ReflectionBase::setPropertyValue_NoBroadcast_public( diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index e203e644758f..72862fd619b6 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -1216,7 +1216,7 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString aLocale.Language = "en"; aLocale.Country = "US"; OUString sFormat("YYYY-MM-DD"); - m_nDateFormatKey = xFormats->queryKey(sFormat,aLocale,sal_False); + m_nDateFormatKey = xFormats->queryKey(sFormat,aLocale,false); if ( m_nDateFormatKey == sal_Int32(-1) ) m_nDateFormatKey = xFormats->addNew(sFormat, aLocale); } |