diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 11:48:07 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 17:19:41 +0100 |
commit | 56e4ae786cfe9deec065a686c46a7eb457ce7049 (patch) | |
tree | f5c8163a068305b9f91b890b4313662505327140 /dbaccess/source/ui | |
parent | bd61ef0c3421bf322714c4cb4c8bdc0424a32a56 (diff) |
Simplify: getToken+getLength ==> indexOf
Change-Id: I50de21b635d791ca8f7299dcc8dafaf4e89a9fc6
Reviewed-on: https://gerrit.libreoffice.org/65680
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index 0f49fdd4cb9f..39ef3acd5069 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -2405,8 +2405,7 @@ sal_Int8 OApplicationController::executeDrop( const ExecuteDropEvent& _rEvt ) if ( xContent.is() ) { OUString sName = xContent->getIdentifier()->getContentIdentifier(); - sal_Int32 nIndex = 0; - sName = sName.copy(sName.getToken(0,'/',nIndex).getLength() + 1); + sName = sName.copy(sName.indexOf('/') + 1); if ( m_aAsyncDrop.aUrl.getLength() >= sName.getLength() && m_aAsyncDrop.aUrl.startsWith(sName) ) { m_aAsyncDrop.aDroppedData.clear(); |