summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 97a37b8557b8..f2b35617c952 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1363,7 +1363,7 @@ callback (gpointer pData)
priv->m_aReferenceMarks.clear();
- for(auto& rMark : aTree.get_child("marks"))
+ for(const auto& rMark : aTree.get_child("marks"))
{
sal_uInt32 nColor = std::stoi(rMark.second.get<std::string>("color"), nullptr, 16);
std::string sRect = rMark.second.get<std::string>("rectangle");
@@ -1849,7 +1849,7 @@ renderOverlay(LOKDocView* pDocView, cairo_t* pCairo)
}
// Draw reference marks.
- for (auto& rPair : priv->m_aReferenceMarks)
+ for (const auto& rPair : priv->m_aReferenceMarks)
{
const ViewRectangle& rMark = rPair.first;
if (rMark.m_nPart != priv->m_nPartId)