diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-21 16:55:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-21 20:00:47 +0200 |
commit | eaf9565c84017ae3f162b3b6fd229b9772bf513e (patch) | |
tree | fd14c5d504c706541c6d5bafe8aa39146a5a0a29 /sw | |
parent | 8bf1542f856bd2b8617d7a0870824a3a2ada4b6c (diff) |
Avoid extra calls to INetURLObject::decode
Change-Id: I700c4093213395a12342534fb7685969b5e5b220
Reviewed-on: https://gerrit.libreoffice.org/77891
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 5a0c51b370c6..da555637fa6d 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -2779,8 +2779,8 @@ OUString LoadAndRegisterDataSource_Impl(DBConnURIType type, const uno::Reference uno::Reference<uno::XComponentContext> xContext(::comphelper::getProcessComponentContext()); uno::Reference<sdb::XDatabaseContext> xDBContext = sdb::DatabaseContext::create(xContext); - OUString sNewName = INetURLObject::decode(rURL.getName(), - INetURLObject::DecodeMechanism::Unambiguous); + OUString sNewName = rURL.getName( + INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::Unambiguous); sal_Int32 nExtLen = sExt.getLength(); sNewName = sNewName.replaceAt(sNewName.getLength() - nExtLen - 1, nExtLen + 1, ""); |