summaryrefslogtreecommitdiffstats
path: root/libreofficekit/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 09:32:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 12:04:41 +0200
commit07f9223daae92ac11be2382ecd0095e744f5695f (patch)
tree553f162c88e1d30dd7946daf62c0db7acb9a0469 /libreofficekit/source
parenttdf#76260 cache next page style number (diff)
downloadcore-07f9223daae92ac11be2382ecd0095e744f5695f.tar.gz
core-07f9223daae92ac11be2382ecd0095e744f5695f.zip
loplugin:constvars in i18npool..opencl
Change-Id: I82738a18ff116fdc78f07b453c93b1b631632caf Reviewed-on: https://gerrit.libreoffice.org/77775 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'libreofficekit/source')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index fd6ca8449327..60ec5afbc8c5 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1709,7 +1709,7 @@ renderOverlay(LOKDocView* pDocView, cairo_t* pCairo)
if (!priv->m_aTextSelectionRectangles.empty())
{
- for (GdkRectangle& rRectangle : priv->m_aTextSelectionRectangles)
+ for (const GdkRectangle& rRectangle : priv->m_aTextSelectionRectangles)
{
// Blue with 75% transparency.
cairo_set_source_rgba(pCairo, (double(0x43))/255, (double(0xac))/255, (double(0xe8))/255, 0.25);
@@ -1749,12 +1749,12 @@ renderOverlay(LOKDocView* pDocView, cairo_t* pCairo)
}
// Selections of other views.
- for (auto& rPair : priv->m_aTextViewSelectionRectangles)
+ for (const auto& rPair : priv->m_aTextViewSelectionRectangles)
{
if (rPair.second.m_nPart != priv->m_nPartId && priv->m_eDocumentType != LOK_DOCTYPE_TEXT)
continue;
- for (GdkRectangle& rRectangle : rPair.second.m_aRectangles)
+ for (const GdkRectangle& rRectangle : rPair.second.m_aRectangles)
{
const GdkRGBA& rDark = getDarkColor(rPair.first, priv);
// 75% transparency.
@@ -1775,7 +1775,7 @@ renderOverlay(LOKDocView* pDocView, cairo_t* pCairo)
}
// Graphic selections of other views.
- for (auto& rPair : priv->m_aGraphicViewSelections)
+ for (const auto& rPair : priv->m_aGraphicViewSelections)
{
const ViewRectangle& rRectangle = rPair.second;
if (rRectangle.m_nPart != priv->m_nPartId && priv->m_eDocumentType != LOK_DOCTYPE_TEXT)
@@ -1799,7 +1799,7 @@ renderOverlay(LOKDocView* pDocView, cairo_t* pCairo)
}
// Cell view cursors: they are colored.
- for (auto& rPair : priv->m_aCellViewCursors)
+ for (const auto& rPair : priv->m_aCellViewCursors)
{
const ViewRectangle& rCursor = rPair.second;
if (rCursor.m_nPart != priv->m_nPartId)
@@ -1817,7 +1817,7 @@ renderOverlay(LOKDocView* pDocView, cairo_t* pCairo)
}
// View locks: they are colored.
- for (auto& rPair : priv->m_aViewLockRectangles)
+ for (const auto& rPair : priv->m_aViewLockRectangles)
{
const ViewRectangle& rRectangle = rPair.second;
if (rRectangle.m_nPart != priv->m_nPartId)