From 6009d338236733006e69b184bfcfab355fa81493 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Apr 2016 17:16:13 +0200 Subject: loplugin:salbool: Automatic rewrite of sal_False/True Change-Id: I5cd8fd979fd4caa3d7cde599096627bfdd0dec7e --- dbaccess/source/filter/xml/dbloader2.cxx | 2 +- dbaccess/source/filter/xml/xmlDataSource.cxx | 8 ++++---- dbaccess/source/filter/xml/xmlDataSourceInfo.cxx | 2 +- dbaccess/source/filter/xml/xmlfilter.cxx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'dbaccess/source/filter') diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx index ce5b7167d478..54689a16d830 100644 --- a/dbaccess/source/filter/xml/dbloader2.cxx +++ b/dbaccess/source/filter/xml/dbloader2.cxx @@ -377,7 +377,7 @@ void SAL_CALL DBContentLoader::load(const Reference< XFrame > & rFrame, const OU { // first check if preview is true, if so return with out creating a controller. Preview is not supported ::comphelper::NamedValueCollection aMediaDesc( rArgs ); - bool bPreview = aMediaDesc.getOrDefault( "Preview", sal_False ); + bool bPreview = aMediaDesc.getOrDefault( "Preview", false ); if ( bPreview ) { if (rListener.is()) diff --git a/dbaccess/source/filter/xml/xmlDataSource.cxx b/dbaccess/source/filter/xml/xmlDataSource.cxx index 9b03217ccd05..80d2377d3e77 100644 --- a/dbaccess/source/filter/xml/xmlDataSource.cxx +++ b/dbaccess/source/filter/xml/xmlDataSource.cxx @@ -169,26 +169,26 @@ OXMLDataSource::OXMLDataSource( ODBFilter& rImport, if ( !bFoundTableNameLengthLimited && ( _eUsedFor == eAppSettings ) ) { aProperty.Name = INFO_ALLOWLONGTABLENAMES; - aProperty.Value <<= sal_True; + aProperty.Value <<= true; rImport.addInfo(aProperty); } if ( !bFoundParamNameSubstitution && ( _eUsedFor == eDriverSettings ) ) { aProperty.Name = INFO_PARAMETERNAMESUBST; - aProperty.Value <<= sal_True; + aProperty.Value <<= true; rImport.addInfo(aProperty); } if ( !bFoundAppendTableAliasName && ( _eUsedFor == eAppSettings ) ) { aProperty.Name = INFO_APPEND_TABLE_ALIAS; - aProperty.Value <<= sal_True; + aProperty.Value <<= true; rImport.addInfo(aProperty); } if ( !bFoundSuppressVersionColumns && ( _eUsedFor == eAppSettings ) ) { try { - xDataSource->setPropertyValue(PROPERTY_SUPPRESSVERSIONCL,makeAny(sal_True)); + xDataSource->setPropertyValue(PROPERTY_SUPPRESSVERSIONCL,makeAny(true)); } catch(const Exception&) { diff --git a/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx b/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx index c32d74c9984e..376dab7485da 100644 --- a/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx +++ b/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx @@ -100,7 +100,7 @@ OXMLDataSourceInfo::OXMLDataSourceInfo( ODBFilter& rImport if ( bAutoEnabled ) { aProperty.Name = INFO_AUTORETRIEVEENABLED; - aProperty.Value <<= sal_True; + aProperty.Value <<= true; rImport.addInfo(aProperty); } if ( rImport.isNewFormat() ) diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx index 2f1e97aa564d..dcc8f767116a 100644 --- a/dbaccess/source/filter/xml/xmlfilter.cxx +++ b/dbaccess/source/filter/xml/xmlfilter.cxx @@ -357,7 +357,7 @@ bool ODBFilter::implImport( const Sequence< PropertyValue >& rDescriptor ) { uno::Reference< XModifiable > xModi(GetModel(),UNO_QUERY); if ( xModi.is() ) - xModi->setModified(sal_False); + xModi->setModified(false); } else { -- cgit