diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 14:19:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:23:20 +0200 |
commit | 7b4f643f4feb28fdc92b3da7a95d0f1c7286d01a (patch) | |
tree | 1c203e78d9b634df39ce312b1daa411616d4bc49 /svx/source/fmcomp | |
parent | c504780e7883e911916689c12709d64d78125422 (diff) |
loplugin:sequenceloop in svtools..svx
Change-Id: I81b54f6db69491492b2bc16f48b2296ad96e137d
Reviewed-on: https://gerrit.libreoffice.org/77529
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index ab5705fd4cab..db802b41a2d6 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -2424,7 +2424,7 @@ void DbComboBox::SetList(const Any& rItems) css::uno::Sequence<OUString> aTest; if (rItems >>= aTest) { - for (const OUString& rString : aTest) + for (const OUString& rString : std::as_const(aTest)) pField->InsertEntry(rString); // tell the grid control that this controller is invalid and has to be re-initialized @@ -2545,7 +2545,7 @@ void DbListBox::SetList(const Any& rItems) { if (aTest.hasElements()) { - for (const OUString& rString : aTest) + for (const OUString& rString : std::as_const(aTest)) pField->InsertEntry(rString); m_rColumn.getModel()->getPropertyValue(FM_PROP_VALUE_SEQ) >>= m_aValueList; @@ -2707,13 +2707,13 @@ void DbFilterField::SetList(const Any& rItems, bool bComboBox) if (bComboBox) { ComboBox* pField = static_cast<ComboBox*>(m_pWindow.get()); - for (const OUString& rString : aTest) + for (const OUString& rString : std::as_const(aTest)) pField->InsertEntry(rString); } else { ListBox* pField = static_cast<ListBox*>(m_pWindow.get()); - for (const OUString& rString : aTest) + for (const OUString& rString : std::as_const(aTest)) pField->InsertEntry(rString); m_rColumn.getModel()->getPropertyValue(FM_PROP_VALUE_SEQ) >>= m_aValueList; |