sc/source/core/data/dpsave.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a3bd64c4a1fceb20fe5d72da142a46a72b8ae5dc Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Sep 28 09:28:21 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Sep 28 14:06:11 2023 +0200 cid#1545264 COPY_INSTEAD_OF_MOVE Change-Id: If46030df202c9c569835bae0713bc2fb681b623d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157366 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> 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<uno::XInterface>& xD uno::Reference<sheet::XHierarchiesSupplier> xHierSupp( xDim, uno::UNO_QUERY ); if ( xHierSupp.is() ) { - uno::Reference<container::XNameAccess> xHiersName = xHierSupp->getHierarchies(); - xHiers = new ScNameToIndexAccess( xHiersName ); + xHiers = new ScNameToIndexAccess(xHierSupp->getHierarchies()); nHierCount = xHiers->getCount(); }