summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 11:34:01 +0200
committerNoel Grandin <noel@peralex.com>2013-11-21 13:29:29 +0200
commit6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch)
treeff375d3a9e989c731a42a1255b8e1cede2bb6bbd /dbaccess
parent89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this: if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aStr == "rem") which compiles down to the same code. Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/dbfindex.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx
index 644df9427785..b71b56ea332f 100644
--- a/dbaccess/source/ui/dlg/dbfindex.cxx
+++ b/dbaccess/source/ui/dlg/dbfindex.cxx
@@ -352,7 +352,7 @@ void ODbaseIndexDialog::Init()
aNDX = aKeyName.copy(0,3);
// yes -> add to the tables index list
- if (aNDX.equalsL(RTL_CONSTASCII_STRINGPARAM("NDX")))
+ if (aNDX == "NDX")
{
aEntry = OStringToOUString(aInfFile.ReadKey(aKeyName), osl_getThreadTextEncoding());
rTabInfo.aIndexList.push_back( OTableIndex( aEntry ) );
@@ -455,7 +455,7 @@ void OTableInfo::WriteInfFile( const OUString& rDSN ) const
aNDX = aKeyName.copy(0,3);
//...if yes, delete index file, nKey is at subsequent key
- if (aNDX.equalsL(RTL_CONSTASCII_STRINGPARAM("NDX")))
+ if (aNDX == "NDX")
{
aInfFile.DeleteKey(aKeyName);
nKeyCnt--;