diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-31 16:58:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-01 07:38:09 +0200 |
commit | 73c1ac010c544e836cfff4c53542a2bb37630c9f (patch) | |
tree | 48e61eb7f65bed7f6fde5cfceae239770138859d /connectivity | |
parent | 3194d22a24f102d2a8a617f88b162545a0395447 (diff) |
connectivity: sal_Bool->bool
Change-Id: Ia45f9776e0b27720647c664541a41b5f46eedc37
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/filtermanager.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/commontools/predicateinput.cxx | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/source/commontools/filtermanager.cxx b/connectivity/source/commontools/filtermanager.cxx index 055dec7eba02..83fa8e401a39 100644 --- a/connectivity/source/commontools/filtermanager.cxx +++ b/connectivity/source/commontools/filtermanager.cxx @@ -86,7 +86,7 @@ namespace dbtools } - void FilterManager::setApplyPublicFilter( sal_Bool _bApply ) + void FilterManager::setApplyPublicFilter( bool _bApply ) { if ( m_bApplyPublicFilter == _bApply ) return; diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx index 03373a9b6762..fc99432f3656 100644 --- a/connectivity/source/commontools/predicateinput.cxx +++ b/connectivity/source/commontools/predicateinput.cxx @@ -76,7 +76,7 @@ namespace dbtools //= OPredicateInputController - sal_Bool OPredicateInputController::getSeparatorChars( const Locale& _rLocale, sal_Unicode& _rDecSep, sal_Unicode& _rThdSep ) const + bool OPredicateInputController::getSeparatorChars( const Locale& _rLocale, sal_Unicode& _rDecSep, sal_Unicode& _rThdSep ) const { _rDecSep = '.'; _rThdSep = ','; @@ -88,14 +88,14 @@ namespace dbtools aLocaleData = m_xLocaleData->getLocaleItem( _rLocale ); _rDecSep = lcl_getSeparatorChar( aLocaleData.decimalSeparator, _rDecSep ); _rThdSep = lcl_getSeparatorChar( aLocaleData.decimalSeparator, _rThdSep ); - return sal_True; + return true; } } catch( const Exception& ) { OSL_FAIL( "OPredicateInputController::getSeparatorChars: caught an exception!" ); } - return sal_False; + return false; } @@ -245,13 +245,13 @@ namespace dbtools } - sal_Bool OPredicateInputController::normalizePredicateString( + bool OPredicateInputController::normalizePredicateString( OUString& _rPredicateValue, const Reference< XPropertySet > & _rxField, OUString* _pErrorMessage ) const { OSL_ENSURE( m_xConnection.is() && m_xFormatter.is() && _rxField.is(), "OPredicateInputController::normalizePredicateString: invalid state or params!" ); - sal_Bool bSuccess = sal_False; + bool bSuccess = false; if ( m_xConnection.is() && m_xFormatter.is() && _rxField.is() ) { // parse the string @@ -275,7 +275,7 @@ namespace dbtools _rPredicateValue = sTransformedText; delete pParseNode; - bSuccess = sal_True; + bSuccess = true; } } @@ -285,7 +285,7 @@ namespace dbtools OUString OPredicateInputController::getPredicateValue( const OUString& _rPredicateValue, const Reference< XPropertySet > & _rxField, - sal_Bool _bForStatementUse, OUString* _pErrorMessage ) const + bool _bForStatementUse, OUString* _pErrorMessage ) const { OSL_ENSURE( _rxField.is(), "OPredicateInputController::getPredicateValue: invalid params!" ); OUString sReturn; @@ -331,7 +331,7 @@ namespace dbtools } OUString OPredicateInputController::getPredicateValue( - const OUString& _sField, const OUString& _rPredicateValue, sal_Bool _bForStatementUse, OUString* _pErrorMessage ) const + const OUString& _sField, const OUString& _rPredicateValue, bool _bForStatementUse, OUString* _pErrorMessage ) const { OUString sReturn = _rPredicateValue; OUString sError; @@ -381,7 +381,7 @@ namespace dbtools return pParseNode ? implParseNode(pParseNode,_bForStatementUse) : sReturn; } - OUString OPredicateInputController::implParseNode(OSQLParseNode* pParseNode,sal_Bool _bForStatementUse) const + OUString OPredicateInputController::implParseNode(OSQLParseNode* pParseNode, bool _bForStatementUse) const { OUString sReturn; if ( pParseNode ) |