diff options
Diffstat (limited to 'svgio/source/svgreader/svgdocumenthandler.cxx')
-rw-r--r-- | svgio/source/svgreader/svgdocumenthandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgdocumenthandler.cxx b/svgio/source/svgreader/svgdocumenthandler.cxx index 8288a40be6ce..87dc67e00273 100644 --- a/svgio/source/svgreader/svgdocumenthandler.cxx +++ b/svgio/source/svgreader/svgdocumenthandler.cxx @@ -54,12 +54,12 @@ namespace { if(pNode) { - const svgio::svgreader::SvgNodeVector& rChilds = pNode->getChildren(); + const auto& rChilds = pNode->getChildren(); const sal_uInt32 nCount(rChilds.size()); for(sal_uInt32 a(0); a < nCount; a++) { - svgio::svgreader::SvgNode* pCandidate = rChilds[a]; + svgio::svgreader::SvgNode* pCandidate = rChilds[a].get(); if(pCandidate) { @@ -564,12 +564,12 @@ namespace svgio case SVGTokenTspan: case SVGTokenTextPath: { - const SvgNodeVector& rChilds = mpTarget->getChildren(); + const auto& rChilds = mpTarget->getChildren(); SvgCharacterNode* pTarget = nullptr; if(rChilds.size()) { - pTarget = dynamic_cast< SvgCharacterNode* >(rChilds[rChilds.size() - 1]); + pTarget = dynamic_cast< SvgCharacterNode* >(rChilds[rChilds.size() - 1].get()); } if(pTarget) |