diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 13:18:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:08 +0200 |
commit | acebbee971136e6ee0a7bc75bd57d937d6e1c295 (patch) | |
tree | f56fec189343e1d9297918037b55263733243d7b /connectivity | |
parent | d894fee80e40519cb579987b95cb3d19345dfa71 (diff) |
remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like:
if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aByteStr.startsWith("rem"))
Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/hsqldb/HDriver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 21ed0d2ccbde..af9c1bae6052 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -279,13 +279,13 @@ namespace connectivity continue; const OString sIniKey = comphelper::string::getToken(sLine, 0, '='); const OString sValue = comphelper::string::getToken(sLine, 1, '='); - if (sIniKey.equalsL(RTL_CONSTASCII_STRINGPARAM("hsqldb.compatible_version"))) + if (sIniKey.startsWith("hsqldb.compatible_version")) { sVersionString = sValue; } else { - if (sIniKey.equalsL(RTL_CONSTASCII_STRINGPARAM("version")) + if (sIniKey.startsWith("version") && ( sVersionString.isEmpty() ) ) { |