Kaydet (Commit) f5929249 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Replaced manual loop with for_each.

üst cef57942
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
#include "docoptio.hxx" #include "docoptio.hxx"
#include "patattr.hxx" #include "patattr.hxx"
#include "tabprotection.hxx" #include "tabprotection.hxx"
#include "stlalgorithm.hxx"
#include <com/sun/star/sheet/XCellAddressable.hpp> #include <com/sun/star/sheet/XCellAddressable.hpp>
#include <com/sun/star/sheet/XCellRangeAddressable.hpp> #include <com/sun/star/sheet/XCellRangeAddressable.hpp>
...@@ -118,9 +119,7 @@ XclExpObjList::XclExpObjList( const XclExpRoot& rRoot, XclEscherEx& rEscherEx ) ...@@ -118,9 +119,7 @@ XclExpObjList::XclExpObjList( const XclExpRoot& rRoot, XclEscherEx& rEscherEx )
XclExpObjList::~XclExpObjList() XclExpObjList::~XclExpObjList()
{ {
std::vector<XclObj*>::iterator pIter; ::std::for_each(maObjs.begin(), maObjs.end(), ScDeleteObjectByPtr<XclObj>());
for ( pIter = maObjs.begin(); pIter != maObjs.end(); ++pIter )
delete *pIter;
delete pMsodrawingPerSheet; delete pMsodrawingPerSheet;
delete pSolverContainer; delete pSolverContainer;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment