diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-06-14 00:07:36 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-06-14 00:07:36 -0400 |
commit | f5929249cce32ab640b0282c851404ed52af262c (patch) | |
tree | d4673dcaf2e6e158ac277ece8cca2b3864a7e75a /sc/source/filter/xcl97 | |
parent | cef57942fe7d94a172a2c4dd8e172e09966be5b9 (diff) |
Replaced manual loop with for_each.
Diffstat (limited to 'sc/source/filter/xcl97')
-rw-r--r-- | sc/source/filter/xcl97/xcl97rec.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx index 133652f009b7..17b9946d60db 100644 --- a/sc/source/filter/xcl97/xcl97rec.cxx +++ b/sc/source/filter/xcl97/xcl97rec.cxx @@ -77,6 +77,7 @@ #include "docoptio.hxx" #include "patattr.hxx" #include "tabprotection.hxx" +#include "stlalgorithm.hxx" #include <com/sun/star/sheet/XCellAddressable.hpp> #include <com/sun/star/sheet/XCellRangeAddressable.hpp> @@ -118,9 +119,7 @@ XclExpObjList::XclExpObjList( const XclExpRoot& rRoot, XclEscherEx& rEscherEx ) XclExpObjList::~XclExpObjList() { - std::vector<XclObj*>::iterator pIter; - for ( pIter = maObjs.begin(); pIter != maObjs.end(); ++pIter ) - delete *pIter; + ::std::for_each(maObjs.begin(), maObjs.end(), ScDeleteObjectByPtr<XclObj>()); delete pMsodrawingPerSheet; delete pSolverContainer; } |