diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx index 78067c042acd..74f9131caf16 100644 --- a/sc/source/core/data/dpsave.cxx +++ b/sc/source/core/data/dpsave.cxx @@ -520,8 +520,7 @@ void ScDPSaveDimension::WriteToSource( const uno::Reference& xD uno::Reference xHierSupp( xDim, uno::UNO_QUERY ); if ( xHierSupp.is() ) { - uno::Reference xHiersName = xHierSupp->getHierarchies(); - xHiers = new ScNameToIndexAccess( xHiersName ); + xHiers = new ScNameToIndexAccess(xHierSupp->getHierarchies()); nHierCount = xHiers->getCount(); }