diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-06 18:05:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-06 18:05:06 +0200 |
commit | 7eaf8b17dd3020c54ab58ae513c1175c95d5ccce (patch) | |
tree | bdf66afe5dff12131d6369d0dcc6ce6b6b641c7c /sw | |
parent | 0f92d79708118d99fca4c60c30cd5c63c24e02fb (diff) |
clang-tidy performance-implicit-cast-in-loop
...where the first component of the pair returned by the iterator would be
const, so an implicit conversion would be required.
Change-Id: I62b6ddd799261e1dd63ea5c42a85d8b071f8b8b7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index ff44d436dc74..4e55c49055fe 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1046,7 +1046,7 @@ void DocxAttributeOutput::EndParagraphProperties(const SfxItemSet& rParagraphMar FSNS(XML_w, XML_element), "RDF", FSEND); m_pSerializer->startElementNS(XML_w, XML_smartTagPr, FSEND); - for (const std::pair<OUString, OUString>& rStatement : aStatements) + for (const auto& rStatement : aStatements) m_pSerializer->singleElementNS(XML_w, XML_attr, FSNS(XML_w, XML_name), rStatement.first.toUtf8(), FSNS(XML_w, XML_val), rStatement.second.toUtf8(), diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index c726accae3c9..e7753fd4e83d 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -416,7 +416,7 @@ void WW8_WrtFactoids::Write(WW8Export& rExport) for (const std::map<OUString, OUString>& rStatements : m_aStatements) { // Statements for a single text node. - for (const std::pair<OUString, OUString>& rPair : rStatements) + for (const auto& rPair : rStatements) { aSet.insert(rPair.first); aSet.insert(rPair.second); @@ -427,7 +427,7 @@ void WW8_WrtFactoids::Write(WW8Export& rExport) { MSOPropertyBag aPropertyBag; aPropertyBag.m_nId = 1; - for (const std::pair<OUString, OUString>& rPair : rStatements) + for (const auto& rPair : rStatements) { MSOProperty aProperty; aProperty.m_nKey = std::distance(aSet.begin(), aSet.find(rPair.first)); |