summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyimport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-07 16:42:18 +0200
committerNoel Grandin <noel@peralex.com>2014-04-15 09:02:31 +0200
commit8a81f542a6ca566661305c53899b7e422cbaa432 (patch)
treeb70ce405aab1c29856fa824493a664ba8ba27596 /xmloff/source/forms/propertyimport.cxx
parent42bfd486a457d327f640263ccc3ee02a380f3566 (diff)
xmloff: sal_Bool->bool
Change-Id: I873c80baec8e70e3e8f642644563b92137571a30
Diffstat (limited to 'xmloff/source/forms/propertyimport.cxx')
-rw-r--r--xmloff/source/forms/propertyimport.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 128b90d32e6c..59bb88163d55 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -84,17 +84,17 @@ namespace
}
Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun::star::uno::Type& _rExpectedType,
- const OUString& _rReadCharacters, const SvXMLEnumMapEntry* _pEnumMap, const sal_Bool _bInvertBoolean )
+ const OUString& _rReadCharacters, const SvXMLEnumMapEntry* _pEnumMap, const bool _bInvertBoolean )
{
Any aReturn;
- sal_Bool bEnumAsInt = sal_False;
+ bool bEnumAsInt = false;
switch (_rExpectedType.getTypeClass())
{
case TypeClass_BOOLEAN: // sal_Bool
{
bool bValue;
#if OSL_DEBUG_LEVEL > 0
- sal_Bool bSuccess =
+ bool bSuccess =
#endif
::sax::Converter::convertBool(bValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
@@ -110,7 +110,7 @@ Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun
{ // it's a real int32/16 property
sal_Int32 nValue(0);
#if OSL_DEBUG_LEVEL > 0
- sal_Bool bSuccess =
+ bool bSuccess =
#endif
::sax::Converter::convertNumber(nValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
@@ -123,13 +123,13 @@ Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun
aReturn <<= (sal_Int32)nValue;
break;
}
- bEnumAsInt = sal_True;
+ bEnumAsInt = true;
// NO BREAK! handle it as enum
case TypeClass_ENUM:
{
sal_uInt16 nEnumValue(0);
#if OSL_DEBUG_LEVEL > 0
- sal_Bool bSuccess =
+ bool bSuccess =
#endif
_rImporter.GetMM100UnitConverter().convertEnum(nEnumValue, _rReadCharacters, _pEnumMap);
OSL_ENSURE(bSuccess, "PropertyConversion::convertString: could not convert to an enum value!");
@@ -151,7 +151,7 @@ Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun
{
double nValue;
#if OSL_DEBUG_LEVEL > 0
- sal_Bool bSuccess =
+ bool bSuccess =
#endif
::sax::Converter::convertDouble(nValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
@@ -179,7 +179,7 @@ Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun
// first extract the double
double nValue = 0;
#if OSL_DEBUG_LEVEL > 0
- sal_Bool bSuccess =
+ bool bSuccess =
#endif
::sax::Converter::convertDouble(nValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
@@ -258,7 +258,7 @@ Type PropertyConversion::xmlTypeToUnoType( const OUString& _rType )
OPropertyImport::OPropertyImport(OFormLayerXMLImport_Impl& _rImport, sal_uInt16 _nPrefix, const OUString& _rName)
:SvXMLImportContext(_rImport.getGlobalContext(), _nPrefix, _rName)
,m_rContext(_rImport)
- ,m_bTrackAttributes(sal_False)
+ ,m_bTrackAttributes(false)
{
}
@@ -305,7 +305,7 @@ void OPropertyImport::StartElement(const Reference< XAttributeList >& _rxAttrLis
// default
}
-sal_Bool OPropertyImport::encounteredAttribute(const OUString& _rAttributeName) const
+bool OPropertyImport::encounteredAttribute(const OUString& _rAttributeName) const
{
OSL_ENSURE(m_bTrackAttributes, "OPropertyImport::encounteredAttribute: attribute tracking not enabled!");
return m_aEncounteredAttributes.end() != m_aEncounteredAttributes.find(_rAttributeName);