chart2/source/controller/main/ObjectHierarchy.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 288273f8078aca77c5b43ffd59089d6c32ae3e2f
Author:     Tomaž Vajngerl <[email protected]>
AuthorDate: Fri Jun 17 16:29:23 2022 +0200
Commit:     Tomaž Vajngerl <[email protected]>
CommitDate: Fri Aug 19 10:55:56 2022 +0200

    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 <[email protected]>
    (cherry picked from commit b3f71d852566059b98457edbc0685ef2191342ea)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138493
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx 
b/chart2/source/controller/main/ObjectHierarchy.cxx
index 7934f58fc4d0..064508bbdef6 100644
--- a/chart2/source/controller/main/ObjectHierarchy.cxx
+++ b/chart2/source/controller/main/ObjectHierarchy.cxx
@@ -123,7 +123,7 @@ namespace chart
 
 void ObjectHierarchy::createTree( const Reference< XChartDocument >& 
xChartDocument )
 {
-    m_aChildMap = tChildMap();//clear tree
+    m_aChildMap.clear();
 
     if( !xChartDocument.is() )
         return;

Reply via email to