From 6d993bc5b448241c2cb35eff92e126058ccf1ce1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 28 Jan 2014 20:02:19 +0100 Subject: bool improvements Change-Id: I78099f87510355a43ba9b01ca9d545d44ce11a50 --- forms/source/component/DatabaseForm.cxx | 8 ++++---- forms/source/component/DatabaseForm.hxx | 2 +- forms/source/component/FormComponent.cxx | 4 ++-- forms/source/component/ImageControl.cxx | 2 +- forms/source/richtext/richtextimplcontrol.cxx | 2 +- forms/source/richtext/rtattributehandler.cxx | 2 +- forms/source/runtime/formoperations.cxx | 6 +++--- forms/source/xforms/binding.cxx | 4 ++-- forms/source/xforms/convert.cxx | 2 +- forms/source/xforms/xmlhelper.cxx | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) (limited to 'forms') diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index ab7f6088e83d..290aba7d93f0 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -570,7 +570,7 @@ Sequence ODatabaseForm::GetDataMultiPartEncoded(const ReferencegetPropertyValue( PROPERTY_DECIMAL_ACCURACY ) >>= nScale; - aText = ::rtl::math::doubleToUString(aDoubleVal, rtl_math_StringFormat_F, nScale, '.', sal_True); + aText = ::rtl::math::doubleToUString(aDoubleVal, rtl_math_StringFormat_F, nScale, '.', true); } rList.push_back( HtmlSuccessfulObj(aName, aText) ); } @@ -1032,7 +1032,7 @@ void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const OUString& rN pStream->WriteLine( OUStringToOString(rData, rtl_getTextEncodingFromMimeCharset(pBestMatchingEncoding)) ); pStream->Flush(); pStream->Seek( 0 ); - pChild->SetDocumentLB( new SvLockBytes(pStream, sal_True) ); + pChild->SetDocumentLB( new SvLockBytes(pStream, true) ); rParent.AttachChild( *pChild ); } @@ -1090,7 +1090,7 @@ sal_Bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const OUString // Body - pChild->SetDocumentLB( new SvLockBytes(pStream, sal_True) ); + pChild->SetDocumentLB( new SvLockBytes(pStream, true) ); rParent.AttachChild( *pChild ); return sal_True; diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx index 934c9ef490b1..d26a11b49f02 100644 --- a/forms/source/component/DatabaseForm.hxx +++ b/forms/source/component/DatabaseForm.hxx @@ -550,7 +550,7 @@ protected: inline void ODatabaseForm::submitNBC(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt) { - submit_impl(Control, MouseEvt, sal_False); + submit_impl(Control, MouseEvt, false); } //......................................................................... diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 1dc2937527ac..996c0fcd5620 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -2057,7 +2057,7 @@ sal_Bool SAL_CALL OBoundControlModel::commit() throw(RuntimeException) try { if ( m_xColumnUpdate.is() ) - bSuccess = commitControlValueToDbColumn( sal_False ); + bSuccess = commitControlValueToDbColumn( false ); } catch(const Exception&) { @@ -2537,7 +2537,7 @@ void OBoundControlModel::reset() throw (RuntimeException) // reset the control to it's default resetNoBroadcast(); // and immediately commit the changes to the DB column, to keep consistency - commitControlValueToDbColumn( sal_True ); + commitControlValueToDbColumn( true ); bNeedValueTransfer = sal_False; } diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx index 61af3cb80f8c..de07752d77c3 100644 --- a/forms/source/component/ImageControl.cxx +++ b/forms/source/component/ImageControl.cxx @@ -433,7 +433,7 @@ sal_Bool OImageControlModel::impl_updateStreamForURL_lck( const OUString& _rURL, pImageStream->SetBufferSize(8192); pImageStream->Seek(STREAM_SEEK_TO_BEGIN); - xImageStream = new ::utl::OInputStreamHelper( new SvLockBytes( pImageStream.get(), sal_False ), nSize ); + xImageStream = new ::utl::OInputStreamHelper( new SvLockBytes( pImageStream.get(), false ), nSize ); } } diff --git a/forms/source/richtext/richtextimplcontrol.cxx b/forms/source/richtext/richtextimplcontrol.cxx index a039aa06c6f4..6a51f5ef98c7 100644 --- a/forms/source/richtext/richtextimplcontrol.cxx +++ b/forms/source/richtext/richtextimplcontrol.cxx @@ -224,7 +224,7 @@ namespace frm //-------------------------------------------------------------------- void RichTextControlImpl::normalizeScriptDependentAttribute( SvxScriptSetItem& _rScriptSetItem ) { - _rScriptSetItem.GetItemSet().Put( m_pView->GetAttribs(), sal_False ); + _rScriptSetItem.GetItemSet().Put( m_pView->GetAttribs(), false ); const SfxPoolItem* pNormalizedItem = _rScriptSetItem.GetItemOfScript( getSelectedScriptType() ); WhichId nNormalizedWhichId = _rScriptSetItem.GetItemSet().GetPool()->GetWhich( _rScriptSetItem.Which() ); diff --git a/forms/source/richtext/rtattributehandler.cxx b/forms/source/richtext/rtattributehandler.cxx index af14a307fe5f..7658be91c6d2 100644 --- a/forms/source/richtext/rtattributehandler.cxx +++ b/forms/source/richtext/rtattributehandler.cxx @@ -104,7 +104,7 @@ namespace frm { SvxScriptSetItem aSetItem( (WhichId)getAttributeId(), *_rAttribs.GetPool() ); aSetItem.PutItemForScriptType( _nForScriptType, _rItem ); - _rAttribs.Put( aSetItem.GetItemSet(), sal_False ); + _rAttribs.Put( aSetItem.GetItemSet(), false ); } //-------------------------------------------------------------------- diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index a02b6a9c5c94..aee7e6a69400 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -1005,7 +1005,7 @@ namespace frm void SAL_CALL FormOperations::cursorMoved( const EventObject& /*_Event*/ ) throw (RuntimeException) { MethodGuard aGuard( *this ); - m_bActiveControlModified = sal_False; + m_bActiveControlModified = false; impl_invalidateAllSupportedFeatures_nothrow( aGuard ); } @@ -1030,7 +1030,7 @@ namespace frm OSL_ENSURE( m_xCursor.is(), "FormOperations::modified: already disposed!" ); if ( !m_bActiveControlModified ) { - m_bActiveControlModified = sal_True; + m_bActiveControlModified = true; impl_invalidateModifyDependentFeatures_nothrow( aGuard ); } } @@ -1048,7 +1048,7 @@ namespace frm ) { if ( ( _rEvent.NewValue >>= bIs ) && !bIs ) - m_bActiveControlModified = sal_False; + m_bActiveControlModified = false; } impl_invalidateAllSupportedFeatures_nothrow( aGuard ); } diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index 2473f8e76090..4f9b07dd14b1 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -176,7 +176,7 @@ Binding::XNodeList_t Binding::getXNodeList() { // first make sure we are bound if( ! maBindingExpression.hasValue() ) - bind( sal_False ); + bind( false ); return maBindingExpression.getXNodeList(); } @@ -315,7 +315,7 @@ EvaluationContext Binding::getEvaluationContext() const OSL_ENSURE( getModelImpl() != NULL, "need model impl" ); // bind (in case we were not bound before) - bind( sal_False ); + bind( false ); return _getMIPEvaluationContexts(); } diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx index 99d2421f420a..f81749cde5c0 100644 --- a/forms/source/xforms/convert.cxx +++ b/forms/source/xforms/convert.cxx @@ -84,7 +84,7 @@ namespace return rtl::math::isFinite( f ) ? rtl::math::doubleToUString( f, rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max, '.', - sal_True ) + true ) : OUString(); } diff --git a/forms/source/xforms/xmlhelper.cxx b/forms/source/xforms/xmlhelper.cxx index 7c55516d12ca..4eb8025a9d14 100644 --- a/forms/source/xforms/xmlhelper.cxx +++ b/forms/source/xforms/xmlhelper.cxx @@ -105,7 +105,7 @@ bool isValidQName( const OUString& sName, } } if( nColon > 1 ) - bRet = sal_False; + bRet = false; return bRet; } -- cgit