diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:18:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:47 +0200 |
commit | cb30036c3c9723e75c4b0ca73db6acdea4b66adb (patch) | |
tree | 47662115e6e394ab99a9e22a98bbf44781b177b6 /reportdesign/source/core | |
parent | d3415256cf8f214e50f5106523437c323f15d453 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ieee84933a3067cada2e8105ac61db994f282c383
Diffstat (limited to 'reportdesign/source/core')
-rw-r--r-- | reportdesign/source/core/api/Function.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 18 | ||||
-rw-r--r-- | reportdesign/source/core/api/ReportEngineJFree.cxx | 6 | ||||
-rw-r--r-- | reportdesign/source/core/sdr/ReportDrawPage.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/sdr/RptObject.cxx | 8 |
5 files changed, 18 insertions, 18 deletions
diff --git a/reportdesign/source/core/api/Function.cxx b/reportdesign/source/core/api/Function.cxx index e79decb3a943..839c6a41952f 100644 --- a/reportdesign/source/core/api/Function.cxx +++ b/reportdesign/source/core/api/Function.cxx @@ -43,7 +43,7 @@ OFunction::OFunction(uno::Reference< uno::XComponentContext > const & _xContext) ,m_bPreEvaluated(false) ,m_bDeepTraversing(false) { - m_sInitialFormula.IsPresent = sal_False; + m_sInitialFormula.IsPresent = false; } OFunction::~OFunction() diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 3b151981fe14..006265f6f1da 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -287,8 +287,8 @@ OStyle::OStyle() m_aSize.Width = aDefaultSize.Width(); const style::GraphicLocation eGraphicLocation = style::GraphicLocation_NONE; - const sal_Bool bFalse = sal_False; - const sal_Bool bTrue = sal_True; + const sal_Bool bFalse = false; + const sal_Bool bTrue = true; const sal_Int32 nMargin = 2000; //const sal_Int32 nColor = COL_WHITE; const sal_Int32 nTransparent = COL_TRANSPARENT; @@ -418,12 +418,12 @@ void OStyle::getPropertyDefaultByHandle( sal_Int32 /*_nHandle*/, uno::Any& /*_rD // XStyle sal_Bool SAL_CALL OStyle::isUserDefined( ) throw (uno::RuntimeException, std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL OStyle::isInUse( ) throw (uno::RuntimeException, std::exception) { - return sal_True; + return true; } OUString SAL_CALL OStyle::getParentStyle( ) throw (uno::RuntimeException, std::exception) @@ -1145,7 +1145,7 @@ sal_Bool SAL_CALL OReportDefinition::attachResource( const OUString& /*_rURL*/, throw; } m_pImpl->m_pUndoManager->GetSfxUndoManager().EnableUndo( true ); - return sal_True; + return true; } void OReportDefinition::fillArgs(utl::MediaDescriptor& _aDescriptor) @@ -1471,7 +1471,7 @@ void SAL_CALL OReportDefinition::storeToStorage( const uno::Reference< embed::XS } if ( _xStorageToSaveTo == m_pImpl->m_xStorage ) - setModified(sal_False); + setModified(false); } if ( xStatusIndicator.is() ) xStatusIndicator->end(); @@ -1616,8 +1616,8 @@ bool OReportDefinition::WriteThroughComponent( // XLoadable void SAL_CALL OReportDefinition::initNew( ) throw (frame::DoubleInitializationException, io::IOException, uno::Exception, uno::RuntimeException, std::exception) { - setPageHeaderOn( sal_True ); - setPageFooterOn( sal_True ); + setPageHeaderOn( true ); + setPageFooterOn( true ); } void SAL_CALL OReportDefinition::load( const uno::Sequence< beans::PropertyValue >& _rArguments ) throw (frame::DoubleInitializationException, io::IOException, uno::Exception, uno::RuntimeException, std::exception) @@ -1727,7 +1727,7 @@ void SAL_CALL OReportDefinition::setVisualAreaSize( ::sal_Int64 _nAspect, const m_pImpl->m_aVisualAreaSize.Height != _aSize.Height); m_pImpl->m_aVisualAreaSize = _aSize; if( bChanged ) - setModified( sal_True ); + setModified( true ); m_pImpl->m_nAspect = _nAspect; } diff --git a/reportdesign/source/core/api/ReportEngineJFree.cxx b/reportdesign/source/core/api/ReportEngineJFree.cxx index cdff2e247366..27f86d7a8e75 100644 --- a/reportdesign/source/core/api/ReportEngineJFree.cxx +++ b/reportdesign/source/core/api/ReportEngineJFree.cxx @@ -299,15 +299,15 @@ uno::Reference< frame::XModel > SAL_CALL OReportEngineJFree::createDocumentAlive uno::Sequence < beans::PropertyValue > aArgs( _bHidden ? 3 : 2 ); sal_Int32 nLen = 0; aArgs[nLen].Name = "AsTemplate"; - aArgs[nLen++].Value <<= sal_False; + aArgs[nLen++].Value <<= false; aArgs[nLen].Name = "ReadOnly"; - aArgs[nLen++].Value <<= sal_True; + aArgs[nLen++].Value <<= true; if ( _bHidden ) { aArgs[nLen].Name = "Hidden"; - aArgs[nLen++].Value <<= sal_True; + aArgs[nLen++].Value <<= true; } uno::Reference< lang::XMultiServiceFactory > xFac(m_xContext->getServiceManager(),uno::UNO_QUERY); diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx index 1ce18f7c5fb9..a88c940c46f8 100644 --- a/reportdesign/source/core/sdr/ReportDrawPage.cxx +++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx @@ -81,7 +81,7 @@ uno::Reference< drawing::XShape > OReportDrawPage::CreateShape( SdrObject *pObj { uno::Reference<beans::XPropertySet> xControlModel(rUnoObj.GetUnoControlModel(),uno::UNO_QUERY); if ( xControlModel.is() ) - xControlModel->setPropertyValue( PROPERTY_MULTILINE,uno::makeAny(sal_True)); + xControlModel->setPropertyValue( PROPERTY_MULTILINE,uno::makeAny(true)); } else bChangeOrientation = rUnoObj.GetObjIdentifier() == OBJ_DLG_HFIXEDLINE; diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx index 00c6d9898c28..d099b5c1cdc1 100644 --- a/reportdesign/source/core/sdr/RptObject.cxx +++ b/reportdesign/source/core/sdr/RptObject.cxx @@ -126,7 +126,7 @@ SdrObject* OObjectBase::createObject(const uno::Reference< report::XReportCompon uno::Reference<beans::XPropertySet> xControlModel(pUnoObj->GetUnoControlModel(),uno::UNO_QUERY); if ( xControlModel.is() ) - xControlModel->setPropertyValue( PROPERTY_MULTILINE,uno::makeAny(sal_True)); + xControlModel->setPropertyValue( PROPERTY_MULTILINE,uno::makeAny(true)); } break; case OBJ_DLG_IMAGECONTROL: @@ -614,7 +614,7 @@ void OUnoObject::impl_initializeModel_nothrow() { const Reference< XPropertySet > xModelProps( GetUnoControlModel(), UNO_QUERY_THROW ); const OUString sTreatAsNumberProperty = "TreatAsNumber"; - xModelProps->setPropertyValue( sTreatAsNumberProperty, makeAny( sal_False ) ); + xModelProps->setPropertyValue( sTreatAsNumberProperty, makeAny( false ) ); xModelProps->setPropertyValue( PROPERTY_VERTICALALIGN,m_xReportComponent->getPropertyValue(PROPERTY_VERTICALALIGN)); } } @@ -1168,8 +1168,8 @@ void OOle2Obj::initializeChart( const uno::Reference< frame::XModel>& _xModel) ::comphelper::NamedValueCollection aArgs; aArgs.put( "CellRangeRepresentation", uno::makeAny( OUString( "all" ) ) ); - aArgs.put( "HasCategories", uno::makeAny( sal_True ) ); - aArgs.put( "FirstCellAsLabel", uno::makeAny( sal_True ) ); + aArgs.put( "HasCategories", uno::makeAny( true ) ); + aArgs.put( "FirstCellAsLabel", uno::makeAny( true ) ); aArgs.put( "DataRowSource", uno::makeAny( chart::ChartDataRowSource_COLUMNS ) ); xReceiver->setArguments( aArgs.getPropertyValues() ); |