diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-01-22 12:24:04 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-22 12:27:09 +0100 |
commit | 98e90120119360a2b3e92310f98931fce5c12271 (patch) | |
tree | e11400918175cedbc20632278212032602827be3 /cui/source | |
parent | fea25896a87aa5826eb243069d34aae7d0333a4c (diff) |
make fast string concat comparisons non-ambiguous
Follow-up to https://gerrit.libreoffice.org/#/c/1803/ .
Change-Id: I9131854a579ef57e38dfef7faa539bec98fc305b
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 944ca6f01f0f..959f3a1379c0 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -910,7 +910,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry ) } for( sal_Int32 index = 0; index < childNodes.getLength(); index++ ) { - if (OUString(aNewName+extn) == childNodes[index]->getName()) + if (aNewName+extn == childNodes[index]->getName()) { bFound = sal_True; break; @@ -939,8 +939,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry ) bValid = sal_True; for( sal_Int32 index = 0; index < childNodes.getLength(); index++ ) { - if (OUString(aUserSuppliedName+extn) - == childNodes[index]->getName()) + if (aUserSuppliedName+extn == childNodes[index]->getName()) { bValid = sal_False; String aError( m_createErrStr ); |