summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 16:36:51 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 16:38:28 +0200
commitd45483489513692be77a61cf343663e839483204 (patch)
tree85d3a47fa95a529e4f6d2d12b375a438513c3e9d /dbaccess
parentfa604beee3e8ca26bba7c1d681bf83a44638b835 (diff)
Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
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 c7c76893157a..644df9427785 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.startsWith("NDX"))
+ if (aNDX.equalsL(RTL_CONSTASCII_STRINGPARAM("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.startsWith("NDX"))
+ if (aNDX.equalsL(RTL_CONSTASCII_STRINGPARAM("NDX")))
{
aInfFile.DeleteKey(aKeyName);
nKeyCnt--;