diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 09:32:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 12:04:41 +0200 |
commit | 07f9223daae92ac11be2382ecd0095e744f5695f (patch) | |
tree | 553f162c88e1d30dd7946daf62c0db7acb9a0469 /libreofficekit | |
parent | 6fea13e7a10272922ffdf74b65add10ecf8cec38 (diff) |
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')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-calc-header-bar.cxx | 2 | ||||
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-comments-sidebar.cxx | 2 | ||||
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-calc-header-bar.cxx b/libreofficekit/qa/gtktiledviewer/gtv-calc-header-bar.cxx index 1987bdc909cf..57eba3e0efb3 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-calc-header-bar.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-calc-header-bar.cxx @@ -177,7 +177,7 @@ void gtv_calc_header_bar_configure(GtvCalcHeaderBar* bar, const boost::property_ boost::property_tree::ptree val = *values; try { - for (boost::property_tree::ptree::value_type& rValue : val) + for (const boost::property_tree::ptree::value_type& rValue : val) { int nSize = std::round(lok_doc_view_twip_to_pixel(LOK_DOC_VIEW(window->lokdocview), std::atof(rValue.second.get<std::string>("size").c_str()))); if (nSize >= bar->m_nPositionPixel) diff --git a/libreofficekit/qa/gtktiledviewer/gtv-comments-sidebar.cxx b/libreofficekit/qa/gtktiledviewer/gtv-comments-sidebar.cxx index ab8f9c4cef8a..e28326ab3ffb 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-comments-sidebar.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-comments-sidebar.cxx @@ -53,7 +53,7 @@ gtv_comments_sidebar_view_annotations(GtvCommentsSidebar* sidebar) boost::property_tree::read_json(aStream, aTree); try { - for (boost::property_tree::ptree::value_type& rValue : aTree.get_child("comments")) + for (const boost::property_tree::ptree::value_type& rValue : aTree.get_child("comments")) { GtkWidget* pCommentBox = GtvHelpers::createCommentBox(rValue.second); gtk_container_add(GTK_CONTAINER(sidebar->commentsgrid), pCommentBox); 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) |