From: ishmal Date: Mon, 12 May 2008 21:31:27 +0000 (+0000) Subject: use smart pointer types correctly X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e7274f0a0c6e3c9eaf50cc038c3e2e6ebf37031;p=inkscape.git use smart pointer types correctly --- diff --git a/src/dom/svgreader.cpp b/src/dom/svgreader.cpp index fb4b3c62e..1ec85bcca 100644 --- a/src/dom/svgreader.cpp +++ b/src/dom/svgreader.cpp @@ -762,8 +762,8 @@ SVGDocumentPtr SVGReader::parse(const DocumentPtr src) DOMImplementationImpl impl; doc = new SVGDocumentImpl(&impl, SVG_NAMESPACE, "svg" , NULL); - SVGElementImplPtr destElem = dynamic_cast(doc->getRootElement().get()); - ElementImplPtr srcElem = dynamic_cast(src->getDocumentElement().get()); + SVGElementImplPtr destElem = dynamic_pointer_cast(doc->getRootElement()); + ElementImplPtr srcElem = dynamic_pointer_cast(src->getDocumentElement()); if (!parseElement(destElem, srcElem)) { return NULL;