summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 20:02:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:28 +0100
commit6d993bc5b448241c2cb35eff92e126058ccf1ce1 (patch)
tree4b207a686bb001d80ae90691798cab713a933da4 /forms
parent78ddd6090ca7637320a875da715c96a9dfe7358d (diff)
bool improvements
Change-Id: I78099f87510355a43ba9b01ca9d545d44ce11a50
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/DatabaseForm.cxx8
-rw-r--r--forms/source/component/DatabaseForm.hxx2
-rw-r--r--forms/source/component/FormComponent.cxx4
-rw-r--r--forms/source/component/ImageControl.cxx2
-rw-r--r--forms/source/richtext/richtextimplcontrol.cxx2
-rw-r--r--forms/source/richtext/rtattributehandler.cxx2
-rw-r--r--forms/source/runtime/formoperations.cxx6
-rw-r--r--forms/source/xforms/binding.cxx4
-rw-r--r--forms/source/xforms/convert.cxx2
-rw-r--r--forms/source/xforms/xmlhelper.cxx2
10 files changed, 17 insertions, 17 deletions
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<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XContr
// Create MessageStream for parent
INetMIMEMessageStream aMessStream;
aMessStream.SetSourceMessage( &aParent );
- aMessStream.GenerateHeader( sal_False );
+ aMessStream.GenerateHeader( false );
// Copy MessageStream to SvStream
SvMemoryStream aMemStream;
@@ -770,7 +770,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
{
sal_Int16 nScale = 0;
xComponentSet->getPropertyValue( 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;
}