summaryrefslogtreecommitdiff
path: root/libreofficekit/qa
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/qa
parent6fea13e7a10272922ffdf74b65add10ecf8cec38 (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/qa')
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-calc-header-bar.cxx2
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-comments-sidebar.cxx2
2 files changed, 2 insertions, 2 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);