summaryrefslogtreecommitdiff
path: root/toolkit/source/helper/btndlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/helper/btndlg.cxx')
-rw-r--r--toolkit/source/helper/btndlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/helper/btndlg.cxx b/toolkit/source/helper/btndlg.cxx
index 8a19c6041506..f890ddb0fd8b 100644
--- a/toolkit/source/helper/btndlg.cxx
+++ b/toolkit/source/helper/btndlg.cxx
@@ -103,7 +103,7 @@ long ButtonDialog::ImplGetButtonSize()
long nSepSize = 0;
maCtrlSize = Size( IMPL_MINSIZE_BUTTON_WIDTH, IMPL_MINSIZE_BUTTON_HEIGHT );
- for (auto & it : m_ItemList)
+ for (const auto & it : m_ItemList)
{
nSepSize += nLastSepSize;
@@ -203,7 +203,7 @@ void ButtonDialog::ImplPosControls()
IMPL_LINK( ButtonDialog, ImplClickHdl, Button*, pBtn, void )
{
- for (auto & it : m_ItemList)
+ for (const auto & it : m_ItemList)
{
if ( it->mpPushButton == pBtn )
{