diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 11:59:25 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 18:30:39 +0100 |
commit | c6994fb815624d31bc2570bdcdc5991fd1195792 (patch) | |
tree | 3a6238330ab8c88ed452526629007c5df1051276 /embeddedobj/source | |
parent | a57bda77c3094558e8dae6ecec761ee4b98e5af3 (diff) |
Use for-range loops in embeddedobj, embedserv and formula
Change-Id: I56e1bace8ab8312524e681d3865a1a89d523812d
Reviewed-on: https://gerrit.libreoffice.org/51459
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'embeddedobj/source')
-rw-r--r-- | embeddedobj/source/msole/olecomponent.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index df3b0131b07b..cd9ac6e142f8 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -462,12 +462,9 @@ OleComponent::~OleComponent() } catch( const uno::Exception& ) {} } - for ( FormatEtcList::iterator aIter = m_pNativeImpl->m_aFormatsList.begin(); - aIter != m_pNativeImpl->m_aFormatsList.end(); - ++aIter ) + for (auto const& format : m_pNativeImpl->m_aFormatsList) { - delete *aIter; - (*aIter) = nullptr; + delete format; } m_pNativeImpl->m_aFormatsList.clear(); |