summaryrefslogtreecommitdiff
path: root/vcl/source/window/dialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/dialog.cxx')
-rw-r--r--vcl/source/window/dialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 1377085a259e..a6d542fbcc69 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -1478,7 +1478,7 @@ vcl::Window* Dialog::get_widget_for_response(int response)
}
}
- for (auto& a : aResponses)
+ for (const auto& a : aResponses)
{
if (a.second == response)
return a.first;
@@ -1517,7 +1517,7 @@ int Dialog::get_default_response()
}
}
- for (auto& a : aResponses)
+ for (const auto& a : aResponses)
{
if (a.first->GetStyle() & WB_DEFBUTTON)
{