xmlscript: sal_Bool->bool
Change-Id: I5d0041283637dddeac86c50917d77c7e3d005b20
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user