diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-07 22:26:47 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-10 22:04:03 +0100 |
commit | c6665a1afef58e99d56b07a776964445689c22ca (patch) | |
tree | 238c209ed7f7d7185fd428cf951eb370716156ff /dbaccess | |
parent | 4a514e21eda561ab1025610ea492360d01cbd52d (diff) |
Avoid getTokenCount()
Change-Id: I1f6468e1050924b0c6f6971ad6276932a3c91f75
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/misc/dsntypes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx index a3ba367f4f9a..28de7a44640d 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -208,7 +208,7 @@ void ODsnTypeCollection::extractHostNamePort(const OUString& _rDsn,OUString& _sD _rsHostname = sUrl.getToken(0,':'); } if ( !_rsHostname.isEmpty() ) - _rsHostname = _rsHostname.getToken(comphelper::string::getTokenCount(_rsHostname, '@') - 1, '@'); + _rsHostname = _rsHostname.copy(_rsHostname.lastIndexOf('@')+1); _sDatabaseName = sUrl.getToken(nUrlTokens - 1, ':'); } else if ( _rDsn.startsWithIgnoreAsciiCase("sdbc:address:ldap:") ) |