summaryrefslogtreecommitdiff
path: root/xmlscript/source/xmldlg_imexp/imp_share.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xmldlg_imexp/imp_share.hxx')
-rw-r--r--xmlscript/source/xmldlg_imexp/imp_share.hxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/xmlscript/source/xmldlg_imexp/imp_share.hxx b/xmlscript/source/xmldlg_imexp/imp_share.hxx
index 33556e00bb92..bb8fbad5c7e4 100644
--- a/xmlscript/source/xmldlg_imexp/imp_share.hxx
+++ b/xmlscript/source/xmldlg_imexp/imp_share.hxx
@@ -70,12 +70,12 @@ inline bool getBoolAttr(
::rtl::OUString aValue( xAttributes->getValueByUidName( nUid, rAttrName ) );
if (!aValue.isEmpty())
{
- if (aValue.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("true") ))
+ if ( aValue == "true" )
{
*pRet = sal_True;
return true;
}
- else if (aValue.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("false") ))
+ else if ( aValue == "false" )
{
*pRet = sal_False;
return true;
@@ -139,14 +139,8 @@ public:
inline bool isEventElement(
sal_Int32 nUid, ::rtl::OUString const & rLocalName )
{
- return ((XMLNS_SCRIPT_UID == nUid &&
- (rLocalName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("event") ) ||
- rLocalName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("listener-event") ))) ||
- (XMLNS_DIALOGS_UID == nUid &&
- rLocalName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("event") )));
+ return ((XMLNS_SCRIPT_UID == nUid && (rLocalName == "event" || rLocalName == "listener-event" )) ||
+ (XMLNS_DIALOGS_UID == nUid && rLocalName == "event" ));
}
void addStyle(