[Libreoffice-commits] core.git: cui/source

Stephan Bergmann sbergman at redhat.com
Thu Apr 21 14:13:47 UTC 2016


 cui/source/tabpages/border.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a1236528795739ce7eb8ac1206f33a1f1ad2c209
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Apr 21 16:13:21 2016 +0200

    loplugin:rangedforcopy
    
    Change-Id: I227aa955417385da7cd43cc3641342e66e62ed96

diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 69c4adb..c999db8 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -665,7 +665,7 @@ bool SvxBorderTabPage::FillItemSet( SfxItemSet* rCoreAttrs )
                                 { svx::FRAMEBORDER_RIGHT,SvxBoxItemLine::RIGHT },
                             };
 
-    for (std::pair<svx::FrameBorderType,SvxBoxItemLine> i : eTypes1)
+    for (std::pair<svx::FrameBorderType,SvxBoxItemLine> const & i : eTypes1)
         aBoxItem.SetLine( m_pFrameSel->GetFrameBorderStyle( i.first ), i.second );
 
 
@@ -676,7 +676,7 @@ bool SvxBorderTabPage::FillItemSet( SfxItemSet* rCoreAttrs )
                                 { svx::FRAMEBORDER_HOR,SvxBoxInfoItemLine::HORI },
                                 { svx::FRAMEBORDER_VER,SvxBoxInfoItemLine::VERT }
                             };
-    for (std::pair<svx::FrameBorderType,SvxBoxInfoItemLine> j : eTypes2)
+    for (std::pair<svx::FrameBorderType,SvxBoxInfoItemLine> const & j : eTypes2)
         aBoxInfoItem.SetLine( m_pFrameSel->GetFrameBorderStyle( j.first ), j.second );
 
     aBoxInfoItem.EnableHor( mbHorEnabled );


More information about the Libreoffice-commits mailing list