From 5e7274f0a0c6e3c9eaf50cc038c3e2e6ebf37031 Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 12 May 2008 21:31:27 +0000 Subject: [PATCH] use smart pointer types correctly --- src/dom/svgreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2