summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-06-17 16:29:23 +0200
committerTomaž Vajngerl <quikee@gmail.com>2022-08-14 12:21:27 +0200
commitb3f71d852566059b98457edbc0685ef2191342ea (patch)
tree15b406f59aeb88674fa35fe599bd2722bda9b01e
parent4aa706e345db84b60706b5e17102a48e5db6563e (diff)
chart2: call clear instead of creating a new empty map
Change-Id: I8b21909e92b558240e84cffd9432e0d9e270284e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138244 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-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;