diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-12 10:06:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 08:09:28 +0000 |
commit | f12b17867ef8fa2cfc2ddb7ecda9d7acc57cfa59 (patch) | |
tree | 3b0a89e34cfca550b38b92423a1de4b805d2c91c /vcl/source/window/layout.cxx | |
parent | 96fab0513215cc416e96e1b2089466afd0d2791c (diff) |
clang-tidy modernize-loop-convert in vcl
Change-Id: I79e97a4826bfe3918de223cccf48646a1404f901
Reviewed-on: https://gerrit.libreoffice.org/24922
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r-- | vcl/source/window/layout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 2c6cabff51e7..a3761389b208 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2043,8 +2043,8 @@ MessageDialog::MessageDialog(vcl::Window* pParent, const OString& rID, const OUS void MessageDialog::dispose() { - for (size_t i = 0; i < m_aOwnedButtons.size(); ++i) - m_aOwnedButtons[i].disposeAndClear(); + for (VclPtr<PushButton> & pOwnedButton : m_aOwnedButtons) + pOwnedButton.disposeAndClear(); m_aOwnedButtons.clear(); m_pPrimaryMessage.disposeAndClear(); |