diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-25 16:55:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-27 13:45:07 +0200 |
commit | 21dcef5388e8e5941380225ccb808daa7b1c5620 (patch) | |
tree | 28aefe369dd12a6dffac2b6105bd26e04d6d59ec /xmlscript | |
parent | 65c3e11ea90964726c7d7671447d12e767167d12 (diff) |
xmlscript: sal_Bool->bool
Change-Id: I5d0041283637dddeac86c50917d77c7e3d005b20
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmllib_imexp/imp_share.hxx | 6 | ||||
-rw-r--r-- | xmlscript/source/xmllib_imexp/xmllib_import.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xmlscript/source/xmllib_imexp/imp_share.hxx b/xmlscript/source/xmllib_imexp/imp_share.hxx index 2b355b718914..e975f1e5e1b8 100644 --- a/xmlscript/source/xmllib_imexp/imp_share.hxx +++ b/xmlscript/source/xmllib_imexp/imp_share.hxx @@ -53,7 +53,7 @@ inline sal_Int32 toInt32( OUString const & rStr ) SAL_THROW(()) return nVal; } inline bool getBoolAttr( - sal_Bool * pRet, OUString const & rAttrName, + bool * pRet, OUString const & rAttrName, Reference< xml::input::XAttributes > const & xAttributes, sal_Int32 uid ) { OUString aValue( @@ -62,12 +62,12 @@ inline bool getBoolAttr( { if ( aValue == "true" ) { - *pRet = sal_True; + *pRet = true; return true; } else if ( aValue == "false" ) { - *pRet = sal_False; + *pRet = false; return true; } else diff --git a/xmlscript/source/xmllib_imexp/xmllib_import.cxx b/xmlscript/source/xmllib_imexp/xmllib_import.cxx index 9af39029da4c..4838004ba387 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_import.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_import.cxx @@ -154,7 +154,7 @@ Reference< xml::input::XElement > LibraryImport::startRootElement( else if ( mpLibDesc && rLocalName == "library" ) { LibDescriptor& aDesc = *mpLibDesc; - aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = aDesc.bPreload = sal_False; + aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = aDesc.bPreload = false; aDesc.aName = xAttributes->getValueByUidName(XMLNS_LIBRARY_UID, "name" ); getBoolAttr( &aDesc.bReadOnly, "readonly", xAttributes, XMLNS_LIBRARY_UID ); @@ -191,7 +191,7 @@ Reference< xml::input::XElement > LibrariesElement::startChildElement( else if ( rLocalName == "library" ) { LibDescriptor aDesc; - aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = aDesc.bPreload = sal_False; + aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = aDesc.bPreload = false; aDesc.aName = xAttributes->getValueByUidName(_pImport->XMLNS_LIBRARY_UID, "name" ); aDesc.aStorageURL = xAttributes->getValueByUidName( _pImport->XMLNS_XLINK_UID, "href" ); |