diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-19 08:31:59 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-11-19 09:47:08 +0100 |
commit | dfc45f0abab98a1ce977c6ed95dfa07c185b6d11 (patch) | |
tree | 668ef5f80b5f582042d6772327d1597a640f7a02 /sw | |
parent | 60da185b57f36d48808309d0fa6efb27a587c4e6 (diff) |
Reuse already existing value
Change-Id: I996cd76b55265e783f51573b6d67b0c0187427c8
Reviewed-on: https://gerrit.libreoffice.org/44924
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index f0726264ac4c..93aee382e4ad 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -2735,7 +2735,7 @@ OUString SwDBManager::LoadAndRegisterDataSource(const DBConnURITypes type, const OUString sNewName = INetURLObject::decode( aURL.getName(), INetURLObject::DecodeMechanism::Unambiguous ); - sal_Int32 nExtLen = aURL.GetExtension().getLength(); + sal_Int32 nExtLen = sExt.getLength(); sNewName = sNewName.replaceAt( sNewName.getLength() - nExtLen - 1, nExtLen + 1, "" ); if (pPrefix) sNewName = *pPrefix + sNewName; |