From fceee9237c583f8d95396845a1c1606000df26fb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Aug 2015 11:09:40 +0200 Subject: loplugin: defaultparams Change-Id: I4080aece6fec2778a2a8646ddedd280337303591 --- forms/source/component/DatabaseForm.cxx | 2 +- forms/source/component/ListBox.cxx | 4 ++-- forms/source/xforms/binding.cxx | 10 +++++----- forms/source/xforms/datatyperepository.cxx | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'forms') diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 88ed5623e79e..47488b26cd4e 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1939,7 +1939,7 @@ void SAL_CALL ODatabaseForm::reset() throw( RuntimeException, std::exception ) m_pThread->create(); } EventObject aEvt; - m_pThread->addEvent(&aEvt, false); + m_pThread->addEvent(&aEvt); } else { diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 724b6c8f54be..752a6181a8b5 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -1391,7 +1391,7 @@ namespace frm { // the indexes where the current string appears in our string items Sequence< sal_Int16 > aThisEntryIndexes; - aThisEntryIndexes = findValue( getStringItemList(), *pSelectEntries++, false ); + aThisEntryIndexes = findValue( getStringItemList(), *pSelectEntries++ ); // insert all the indexes of this entry into our set ::std::copy( @@ -1416,7 +1416,7 @@ namespace frm OUString sStringToSelect; OSL_VERIFY( _rExternalValue >>= sStringToSelect ); - aSelectIndexes = findValue( getStringItemList(), sStringToSelect, false ); + aSelectIndexes = findValue( getStringItemList(), sStringToSelect ); } break; } diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index 5c86447281b2..e1454483e550 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -170,7 +170,7 @@ css::uno::Reference Binding::getXNodeList() { // first make sure we are bound if( ! maBindingExpression.hasValue() ) - bind( false ); + bind(); return maBindingExpression.getXNodeList(); } @@ -309,7 +309,7 @@ EvaluationContext Binding::getEvaluationContext() const OSL_ENSURE( getModelImpl() != NULL, "need model impl" ); // bind (in case we were not bound before) - bind( false ); + bind(); return _getMIPEvaluationContexts(); } @@ -779,11 +779,11 @@ MIP Binding::getLocalMIP() const MIP aMIP; if( maReadonly.hasValue() ) - aMIP.setReadonly( maReadonly.getBool( false ) ); + aMIP.setReadonly( maReadonly.getBool() ); if( maRelevant.hasValue() ) aMIP.setRelevant( maRelevant.getBool( true ) ); if( maRequired.hasValue() ) - aMIP.setRequired( maRequired.getBool( false ) ); + aMIP.setRequired( maRequired.getBool() ); if( maConstraint.hasValue() ) { aMIP.setConstraint( maConstraint.getBool( true ) ); @@ -1252,7 +1252,7 @@ void Binding::handleEvent( const css::uno::Reference SAL_CALL ODataTypeRepository::getDataType( const OUString& typeName ) throw (NoSuchElementException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); - return implLocate( typeName, false )->second.get(); + return implLocate( typeName )->second.get(); } -- cgit