diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 14:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:23:38 +0200 |
commit | 3c6cb83b80b502975dce89c02401a064872b5ea3 (patch) | |
tree | 77ca629355406668a34332470c475feffe40e2ec /sw/source/ui/envelp | |
parent | 7b4f643f4feb28fdc92b3da7a95d0f1c7286d01a (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/ui/envelp')
-rw-r--r-- | sw/source/ui/envelp/envlop1.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/envelp/label1.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx index 438498ab749f..f890236195cd 100644 --- a/sw/source/ui/envelp/envlop1.cxx +++ b/sw/source/ui/envelp/envlop1.cxx @@ -279,7 +279,7 @@ void SwEnvPage::InitDatabaseBox() if (m_pSh->GetDBManager()) { m_xDatabaseLB->clear(); - Sequence<OUString> aDataNames = SwDBManager::GetExistingDatabaseNames(); + const Sequence<OUString> aDataNames = SwDBManager::GetExistingDatabaseNames(); for (const OUString& rDataName : aDataNames) m_xDatabaseLB->append_text(rDataName); diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index 44e3345668f6..3be424ca0aa2 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -428,7 +428,7 @@ void SwLabPage::InitDatabaseBox() if( GetDBManager() ) { m_xDatabaseLB->clear(); - css::uno::Sequence<OUString> aDataNames = SwDBManager::GetExistingDatabaseNames(); + const css::uno::Sequence<OUString> aDataNames = SwDBManager::GetExistingDatabaseNames(); for (const OUString& rDataName : aDataNames) m_xDatabaseLB->append_text(rDataName); sal_Int32 nIdx{ 0 }; |