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.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2023-09-28 09:28:21 +01:00
parent c5d512203e
commit a3bd64c4a1

View file

@ -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();
}