summaryrefslogtreecommitdiff
path: root/sw
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 /sw
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 'sw')
-rw-r--r--sw/source/core/doc/docnew.cxx2
-rw-r--r--sw/source/core/fields/authfld.cxx2
-rw-r--r--sw/source/core/model/SearchResultLocator.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 8d449d3382a6..d64c23f044d7 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -469,7 +469,7 @@ SwDoc::~SwDoc()
delete pTmp;
}
- for(auto& pType : *mpTOXTypes)
+ for(const auto& pType : *mpTOXTypes)
pType->CallSwClientNotify(sw::DocumentDyingHint());
mpTOXTypes->clear();
mpDefTOXBases.reset();
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index fec3e1a2b4c4..a754e8bce767 100644
--- a/sw/source/core/fields/authfld.cxx
+++ b/sw/source/core/fields/authfld.cxx
@@ -112,7 +112,7 @@ SwAuthEntry* SwAuthorityFieldType::AddField(const OUString& rFieldContents)
pEntry->SetAuthorField( static_cast<ToxAuthorityField>(i),
rFieldContents.getToken( 0, TOX_STYLE_DELIMITER, nIdx ));
- for (auto &rpTemp : m_DataArr)
+ for (const auto &rpTemp : m_DataArr)
{
if (*rpTemp == *pEntry)
{
diff --git a/sw/source/core/model/SearchResultLocator.cxx b/sw/source/core/model/SearchResultLocator.cxx
index 435f0110aedf..79ba42a97b7c 100644
--- a/sw/source/core/model/SearchResultLocator.cxx
+++ b/sw/source/core/model/SearchResultLocator.cxx
@@ -104,7 +104,7 @@ bool SearchResultLocator::tryParseJSON(const char* pPayload,
return false;
}
- for (auto& rEachNode : boost::make_iterator_range(aTree.equal_range("")))
+ for (const auto& rEachNode : boost::make_iterator_range(aTree.equal_range("")))
{
auto const& rEach = rEachNode.second;