diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:17:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:41 +0200 |
commit | bfb185c408f6630d17bdcf9243666cc1b0af5bd7 (patch) | |
tree | e560fa416aa23d5a043e7126e41fb63811a402a5 /forms/source/xforms | |
parent | 07ea0e64f26ae4ba0a0474352df0bffb4409bd16 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I74cf43df85a878ee9af69901b2535f63461cb61e
Diffstat (limited to 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/binding.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/datatypes.cxx | 4 | ||||
-rw-r--r-- | forms/source/xforms/model_ui.cxx | 4 | ||||
-rw-r--r-- | forms/source/xforms/propertysetbase.cxx | 6 | ||||
-rw-r--r-- | forms/source/xforms/submission.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/submission/replace.cxx | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index ee7cd0018eb9..75cd2bb1967b 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -716,7 +716,7 @@ void Binding::distributeMIP( const css::uno::Reference<css::xml::dom::XNode> & r OUString sEventName("xforms-generic"); css::xforms::XFormsEventConcrete *pEvent = new css::xforms::XFormsEventConcrete; - pEvent->initXFormsEvent(sEventName, sal_True, sal_False); + pEvent->initXFormsEvent(sEventName, true, false); Reference<XEvent> xEvent(pEvent); // naive depth-first traversal diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx index 530a160018da..ce993686605c 100644 --- a/forms/source/xforms/datatypes.cxx +++ b/forms/source/xforms/datatypes.cxx @@ -241,7 +241,7 @@ namespace xforms { // let the base class do the conversion if ( !OXSDDataType_PBase::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue ) ) - return sal_False; + return false; // sanity checks OUString sErrorMessage; @@ -253,7 +253,7 @@ namespace xforms throw IllegalArgumentException( aException ); } - return sal_True; + return true; } diff --git a/forms/source/xforms/model_ui.cxx b/forms/source/xforms/model_ui.cxx index 90a1ba37f45d..baebd0dc4bf8 100644 --- a/forms/source/xforms/model_ui.cxx +++ b/forms/source/xforms/model_ui.cxx @@ -523,7 +523,7 @@ css::uno::Reference<css::xforms::XModel> Model::newModel( const Reference<css::f xModel.set( pModel ); pModel->setID( sName ); - pModel->newInstance( OUString(), OUString(), sal_False ); + pModel->newInstance( OUString(), OUString(), false ); pModel->initialize(); xModels->insertByName( sName, makeAny( xModel ) ); } @@ -804,7 +804,7 @@ static OUString lcl_serializeForDisplay( const Reference<XNodeList>& xNodes ) } // append node - xFragment->appendChild( xDocument->importNode( xCurrent, sal_True ) ); + xFragment->appendChild( xDocument->importNode( xCurrent, true ) ); } OSL_ENSURE( ( nAttributeNodes == 0 ) || ( nAttributeNodes == nLength ), "lcl_serializeForDisplay: mixed attribute and non-attribute nodes?" ); diff --git a/forms/source/xforms/propertysetbase.cxx b/forms/source/xforms/propertysetbase.cxx index 903b73f25036..db3c36cf1d22 100644 --- a/forms/source/xforms/propertysetbase.cxx +++ b/forms/source/xforms/propertysetbase.cxx @@ -58,7 +58,7 @@ cppu::IPropertyArrayHelper& SAL_CALL PropertySetBase::getInfoHelper() if ( !m_pProperties ) { OSL_ENSURE( !m_aProperties.empty(), "PropertySetBase::getInfoHelper: no registered properties!" ); - m_pProperties = new cppu::OPropertyArrayHelper( &m_aProperties[0], m_aProperties.size(), sal_False ); + m_pProperties = new cppu::OPropertyArrayHelper( &m_aProperties[0], m_aProperties.size(), false ); } return *m_pProperties; } @@ -149,9 +149,9 @@ sal_Bool SAL_CALL PropertySetBase::convertFastPropertyValue( Any& rConvertedValu if ( rOldValue != rValue ) { rConvertedValue = rValue; // no conversion at all - return sal_True; + return true; } - return sal_False; + return false; } void SAL_CALL PropertySetBase::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 4e6182090717..ec9360ceafef 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -541,7 +541,7 @@ static void _cloneNodes(Model& aModel, const Reference< XNode >& dstParent, cons MIP mip = aModel.queryMIP(cur); if(mip.isRelevant() && !(bRemoveWSNodes && _isIgnorable(cur))) { - imported = dstDoc->importNode(cur, sal_False); + imported = dstDoc->importNode(cur, false); imported = dstParent->appendChild(imported); // append source children to new imported parent for( cur = cur->getFirstChild(); cur.is(); cur = cur->getNextSibling() ) diff --git a/forms/source/xforms/submission/replace.cxx b/forms/source/xforms/submission/replace.cxx index 93861082c9ee..5b568480c2c4 100644 --- a/forms/source/xforms/submission/replace.cxx +++ b/forms/source/xforms/submission/replace.cxx @@ -67,7 +67,7 @@ CSubmission::SubmissionResult CSubmission::replace(const OUString& aReplace, con descriptor[0] = PropertyValue(OUString("InputStream"), -1, makeAny(m_aResultStream), PropertyState_DIRECT_VALUE); descriptor[1] = PropertyValue(OUString("ReadOnly"), - -1, makeAny(sal_True), PropertyState_DIRECT_VALUE); + -1, makeAny(true), PropertyState_DIRECT_VALUE); OUString aURL = m_aURLObj.GetMainURL(INetURLObject::NO_DECODE); OUString aTarget = "_default"; @@ -86,7 +86,7 @@ CSubmission::SubmissionResult CSubmission::replace(const OUString& aReplace, con Reference< XElement > oldRoot = aDocument->getDocumentElement(); Reference< XElement > newRoot = aNewDocument->getDocumentElement(); - Reference< XNode > aImportedNode = aDocument->importNode(newRoot, sal_True); + Reference< XNode > aImportedNode = aDocument->importNode(newRoot, true); aDocument->replaceChild(aImportedNode, oldRoot); return CSubmission::SUCCESS; } else { |