diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 14:09:04 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-08 19:24:00 +0200 |
commit | e4fb171d3ad15ae9abbc93d9db956674498c9dd5 (patch) | |
tree | 6d297c3054a7de5a8baee08db9237d0f01fffb52 /xmlscript | |
parent | 8e5318b0b971580f8dabecc1318c74e799e84d53 (diff) |
Replaced a few equal calls with ==
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 2 | ||||
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx index 7f053db5c507..bbfc4eb1bcae 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -1263,7 +1263,7 @@ void ElementDescriptor::readEvents() descr.AddListenerParam ); } } - if ( descr.ScriptType.equals( OUString( RTL_CONSTASCII_USTRINGPARAM( "StarBasic" ) ) ) ) + if ( descr.ScriptType == "StarBasic" ) { // separate optional location sal_Int32 nIndex = descr.ScriptCode.indexOf( (sal_Unicode)':' ); diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index 17678702b92a..ff5ceb587421 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -1569,7 +1569,7 @@ void ImportContext::importEvents( "attribute(s) of event!") ), Reference< XInterface >(), Any() ); } - if ( descr.ScriptType.equals( OUString( RTL_CONSTASCII_USTRINGPARAM( "StarBasic" ) ) ) ) + if ( descr.ScriptType == "StarBasic" ) { OUString aLocation; if (getStringAttr( &aLocation, @@ -1586,7 +1586,7 @@ void ImportContext::importEvents( descr.ScriptCode = buf.makeStringAndClear(); } } - else if ( descr.ScriptType.equals( OUString( RTL_CONSTASCII_USTRINGPARAM( "Script" ) ) ) ) + else if ( descr.ScriptType == "Script" ) { // Check if there is a protocol, if not assume // this is an early scripting framework url ( without |