diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-07 10:50:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 10:15:18 +0100 |
commit | 91db89b73c4059bc2af86d91752b89d2497034c7 (patch) | |
tree | 70a4eb76497cdc9607a708cb698c5f40d25688cb /sc/source/filter | |
parent | 6ed9590303b416c958d8d4ae98386f517a332f7f (diff) |
loplugin:useuniqueptr in SvxMSDffSolverContainer
Change-Id: Ied7b60ac59cf1c869232a96e1b2ccb4e1b5cbf53
Reviewed-on: https://gerrit.libreoffice.org/49945
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 8a84cfcf4c20..5e5b1d12f490 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -3176,7 +3176,7 @@ void XclImpSolverContainer::RemoveSdrObjectInfo( SdrObject& rSdrObj ) void XclImpSolverContainer::UpdateConnectorRules() { - for (SvxMSDffConnectorRule* pRule : aCList) + for (auto const & pRule : aCList) { UpdateConnection( pRule->nShapeA, pRule->pAObj, &pRule->nSpFlagsA ); UpdateConnection( pRule->nShapeB, pRule->pBObj, &pRule->nSpFlagsB ); @@ -3186,10 +3186,6 @@ void XclImpSolverContainer::UpdateConnectorRules() void XclImpSolverContainer::RemoveConnectorRules() { - // base class from SVX uses plain untyped tools/List - for (SvxMSDffConnectorRule* p : aCList) { - delete p; - } aCList.clear(); maSdrInfoMap.clear(); maSdrObjMap.clear(); |