From ae5cb9b75984d9a63b392d8bfc5b3d224f00c741 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 27 Jun 2023 14:45:39 +0300 Subject: Simplify a bit Change-Id: Iad2564853a2a0d74cd526b1574e421e121fd6986 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153644 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- dbaccess/source/ui/dlg/dbfindex.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dbaccess/source/ui/dlg/dbfindex.cxx') diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx index e5f62afc6be3..d0a03b5b238c 100644 --- a/dbaccess/source/ui/dlg/dbfindex.cxx +++ b/dbaccess/source/ui/dlg/dbfindex.cxx @@ -254,9 +254,6 @@ void ODbaseIndexDialog::Init() // first assume for all indexes they're free - static constexpr OUStringLiteral aIndexExt(u"ndx"); - static constexpr OUStringLiteral aTableExt(u"dbf"); - std::vector< OUString > aUsedIndexes; aURL.SetSmartProtocol(INetProtocol::File); @@ -267,11 +264,11 @@ void ODbaseIndexDialog::Init() osl::FileBase::getSystemPathFromFileURL(rURL,aName); aURL.SetSmartURL(aName); OUString aExt = aURL.getExtension(); - if (aExt == aIndexExt) + if (aExt == "ndx") { m_aFreeIndexList.emplace_back(aURL.getName() ); } - else if (aExt == aTableExt) + else if (aExt == "dbf") { m_aTableInfoList.emplace_back(aURL.getName() ); OTableInfo& rTabInfo = m_aTableInfoList.back(); -- cgit