diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-02 13:21:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-02 14:22:21 +0100 |
commit | f8922b67a4dc1ff0b889f33d2407584aed5d2e36 (patch) | |
tree | c3dbbc81468176b79e03b8222bb174fc24a30e16 /connectivity | |
parent | c7531408b3ef4b2d284edf35ed983c23e7585231 (diff) |
Remove unnecessary comphelper::string::getToken
Change-Id: I49192637121441b9a1980350b9bb32cd995d4386
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/hsqldb/HDriver.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 04de49efa442..979b076ddc8c 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -276,8 +276,8 @@ namespace connectivity { if ( sLine.isEmpty() ) continue; - const OString sIniKey = comphelper::string::getToken(sLine, 0, '='); - const OString sValue = comphelper::string::getToken(sLine, 1, '='); + const OString sIniKey = sLine.getToken(0, '='); + const OString sValue = sLine.getToken(1, '='); if( sIniKey == "hsqldb.compatible_version" ) { sVersionString = sValue; @@ -292,10 +292,9 @@ namespace connectivity } if (!sVersionString.isEmpty()) { - using comphelper::string::getToken; - const sal_Int32 nMajor = getToken(sVersionString, 0, '.').toInt32(); - const sal_Int32 nMinor = getToken(sVersionString, 1, '.').toInt32(); - const sal_Int32 nMicro = getToken(sVersionString, 2, '.').toInt32(); + const sal_Int32 nMajor = sVersionString.getToken(0, '.').toInt32(); + const sal_Int32 nMinor = sVersionString.getToken(1, '.').toInt32(); + const sal_Int32 nMicro = sVersionString.getToken(2, '.').toInt32(); if ( nMajor > 1 || ( nMajor == 1 && nMinor > 8 ) || ( nMajor == 1 && nMinor == 8 && nMicro > 0 ) ) |