From ae365593f3650fcf45cb04b5413472d02c6560c8 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sun, 5 Feb 2012 13:14:42 +0100 Subject: (cppcheck and janitorial tasks:) C-style casting to C++-style casting (bzr r10938) --- src/ui/widget/imageicon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ui/widget/imageicon.cpp') diff --git a/src/ui/widget/imageicon.cpp b/src/ui/widget/imageicon.cpp index c60e94ab7..77015bdd2 100644 --- a/src/ui/widget/imageicon.cpp +++ b/src/ui/widget/imageicon.cpp @@ -97,11 +97,10 @@ void ImageIcon::init() bool ImageIcon::showSvgDocument(const SPDocument *docArg) { - if (document) document->doUnref(); - SPDocument *doc = (SPDocument *)docArg; + SPDocument *doc = const_cast(docArg); doc->doRef(); document = doc; -- cgit v1.2.3