summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui/dbmgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 14:39:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:23:38 +0200
commit3c6cb83b80b502975dce89c02401a064872b5ea3 (patch)
tree77ca629355406668a34332470c475feffe40e2ec /sw/source/uibase/dbui/dbmgr.cxx
parent7b4f643f4feb28fdc92b3da7a95d0f1c7286d01a (diff)
loplugin:sequenceloop in sw
Change-Id: Icda7c89b396e5607ca847c0a8393cb27a2d50c6c Reviewed-on: https://gerrit.libreoffice.org/77530 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dbui/dbmgr.cxx')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 77a2439990d1..5be3ddce23e5 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -729,7 +729,7 @@ bool SwDBManager::GetTableNames(weld::ComboBox& rBox, const OUString& rDBName)
if(xTSupplier.is())
{
uno::Reference<container::XNameAccess> xTables = xTSupplier->getTables();
- uno::Sequence<OUString> aTables = xTables->getElementNames();
+ const uno::Sequence<OUString> aTables = xTables->getElementNames();
for (const OUString& rTable : aTables)
rBox.append("0", rTable);
}
@@ -737,7 +737,7 @@ bool SwDBManager::GetTableNames(weld::ComboBox& rBox, const OUString& rDBName)
if(xQSupplier.is())
{
uno::Reference<container::XNameAccess> xQueries = xQSupplier->getQueries();
- uno::Sequence<OUString> aQueries = xQueries->getElementNames();
+ const uno::Sequence<OUString> aQueries = xQueries->getElementNames();
for (const OUString& rQuery : aQueries)
rBox.append("1", rQuery);
}