Kaydet (Commit) 21dcef53 authored tarafından Noel Grandin's avatar Noel Grandin

xmlscript: sal_Bool->bool

Change-Id: I5d0041283637dddeac86c50917d77c7e3d005b20
üst 65c3e11e
......@@ -37,11 +37,11 @@ struct XMLSCRIPT_DLLPUBLIC LibDescriptor
{
OUString aName;
OUString aStorageURL;
sal_Bool bLink;
sal_Bool bReadOnly;
sal_Bool bPasswordProtected;
bool bLink;
bool bReadOnly;
bool bPasswordProtected;
::com::sun::star::uno::Sequence< OUString > aElementNames;
sal_Bool bPreload;
bool bPreload;
};
struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray
......
......@@ -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
......
......@@ -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" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment