summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-06-17 16:29:23 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-08-10 14:37:02 +0200
commitb561abf0ae27aa7b8858665aed9b97c36e4bc29b (patch)
treee3f5b236059344498f61961114e2dd01d6791c1c
parente5272ebc21edcc95cb019361e70580a59430a783 (diff)
chart2: call clear instead of creating a new empty map
Change-Id: I8b21909e92b558240e84cffd9432e0d9e270284e
-rw-r--r--chart2/source/controller/main/ObjectHierarchy.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx
index e1f3697e6250..ab1fa891377e 100644
--- a/chart2/source/controller/main/ObjectHierarchy.cxx
+++ b/chart2/source/controller/main/ObjectHierarchy.cxx
@@ -105,7 +105,7 @@ namespace chart
void ObjectHierarchy::createTree( const rtl::Reference<::chart::ChartModel>& xChartDocument )
{
- m_aChildMap = tChildMap();//clear tree
+ m_aChildMap.clear();
if( !xChartDocument.is() )
return;