summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 10:58:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 12:43:21 +0200
commit3a1a448ac4a04137705ea0aaf0163358fd2e5549 (patch)
tree0a7eeeebda959b1b8e7e1af99453c3f8b0541852 /svx
parent88a6ac9f75a4375b72111af5a3e004bef4226455 (diff)
loplugin:constvars
Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/StylesPreviewWindow.cxx2
-rw-r--r--svx/source/xml/xmlxtimp.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index 5a31cf88a276..a90612c0b3c8 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -462,7 +462,7 @@ void StylesPreviewWindow_Base::UpdateStylesList()
}
m_xStylesView->clear();
- for (auto& rStyle : m_aAllStyles)
+ for (const auto& rStyle : m_aAllStyles)
{
ScopedVclPtr<VirtualDevice> pImg = VclPtr<VirtualDevice>::Create();
const Size aSize(100, 30);
diff --git a/svx/source/xml/xmlxtimp.cxx b/svx/source/xml/xmlxtimp.cxx
index f3d0785e0fdb..9bf7b6996b43 100644
--- a/svx/source/xml/xmlxtimp.cxx
+++ b/svx/source/xml/xmlxtimp.cxx
@@ -142,7 +142,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler >
try
{
rtl::Reference<sax_fastparser::FastAttributeList> xFastList = new sax_fastparser::FastAttributeList(nullptr);
- for (auto& aIter : aTmpAttrList)
+ for (const auto& aIter : aTmpAttrList)
xFastList->add(aIter.first, aIter.second);
Any aAny;