summaryrefslogtreecommitdiff
path: root/svx/source/form/fmundo.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-14 16:15:22 +0200
committerNoel Grandin <noel@peralex.com>2014-04-15 09:02:33 +0200
commitbe88947bac607013c6b7a3c923a2eccd09e50942 (patch)
tree09cdc0803437ac8c76e12c60c6644c49cb1d5dd4 /svx/source/form/fmundo.cxx
parentcfddda092b0c105b5be7942a94cbbd88d55677f1 (diff)
svx: sal_Bool->bool
Change-Id: I464eba5fd5521c31868c6fc8a2137f17428d421e
Diffstat (limited to 'svx/source/form/fmundo.cxx')
-rw-r--r--svx/source/form/fmundo.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index d97edf064da0..000446048c3a 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -146,8 +146,8 @@ private:
struct PropertyInfo
{
- sal_Bool bIsTransientOrReadOnly : 1; // the property is transient or read-only, thus we need no undo action for it
- sal_Bool bIsValueProperty : 1; // the property is the special value property, thus it may be handled
+ bool bIsTransientOrReadOnly : 1; // the property is transient or read-only, thus we need no undo action for it
+ bool bIsValueProperty : 1; // the property is the special value property, thus it may be handled
// as if it's transient or persistent
};
@@ -156,7 +156,7 @@ struct PropertySetInfo
typedef std::map<OUString, PropertyInfo> AllProperties;
AllProperties aProps; // all properties of this set which we know so far
- sal_Bool bHasEmptyControlSource; // sal_True -> the set has a DataField property, and the current value is an empty string
+ bool bHasEmptyControlSource; // sal_True -> the set has a DataField property, and the current value is an empty string
// sal_False -> the set has _no_ such property or its value isn't empty
};
@@ -353,10 +353,10 @@ void FmXUndoEnvironment::Inserted(SdrObject* pObj)
namespace
{
- sal_Bool lcl_searchElement(const Reference< XIndexAccess>& xCont, const Reference< XInterface >& xElement)
+ bool lcl_searchElement(const Reference< XIndexAccess>& xCont, const Reference< XInterface >& xElement)
{
if (!xCont.is() || !xElement.is())
- return sal_False;
+ return false;
sal_Int32 nCount = xCont->getCount();
Reference< XInterface > xComp;
@@ -368,12 +368,12 @@ namespace
if (xComp.is())
{
if ( xElement == xComp )
- return sal_True;
+ return true;
else
{
Reference< XIndexAccess> xCont2(xComp, UNO_QUERY);
if (xCont2.is() && lcl_searchElement(xCont2, xElement))
- return sal_True;
+ return true;
}
}
}
@@ -382,7 +382,7 @@ namespace
DBG_UNHANDLED_EXCEPTION();
}
}
- return sal_False;
+ return false;
}
}
@@ -587,7 +587,7 @@ void SAL_CALL FmXUndoEnvironment::propertyChange(const PropertyChangeEvent& evt)
PropertySetInfo aNewEntry;
if (!::comphelper::hasProperty(FM_PROP_CONTROLSOURCE, xSet))
{
- aNewEntry.bHasEmptyControlSource = sal_False;
+ aNewEntry.bHasEmptyControlSource = false;
}
else
{
@@ -625,7 +625,7 @@ void SAL_CALL FmXUndoEnvironment::propertyChange(const PropertyChangeEvent& evt)
aNewEntry.bIsTransientOrReadOnly = ((nAttributes & PropertyAttribute::READONLY) != 0) || ((nAttributes & PropertyAttribute::TRANSIENT) != 0);
// check if it is the special "DataFieldProperty"
- aNewEntry.bIsValueProperty = sal_False;
+ aNewEntry.bIsValueProperty = false;
try
{
if (::comphelper::hasProperty(FM_PROP_CONTROLSOURCEPROPERTY, xSet))
@@ -682,7 +682,7 @@ void SAL_CALL FmXUndoEnvironment::propertyChange(const PropertyChangeEvent& evt)
static const OUString s_sExternalData( "ExternalData" );
if ( xBindingPropsPSI.is() && xBindingPropsPSI->hasPropertyByName( s_sExternalData ) )
{
- sal_Bool bExternalData = sal_True;
+ bool bExternalData = true;
OSL_VERIFY( xBindingProps->getPropertyValue( s_sExternalData ) >>= bExternalData );
bAddUndoAction = !bExternalData;
}