summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/imageicon.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-05 12:14:42 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-05 12:14:42 +0000
commitae365593f3650fcf45cb04b5413472d02c6560c8 (patch)
treed5cf036219d31e69f186fe3bac12fcd8fbb2ff30 /src/ui/widget/imageicon.cpp
parentcppchecktells us: Using signed char type as array index. If the value can be ... (diff)
downloadinkscape-ae365593f3650fcf45cb04b5413472d02c6560c8.tar.gz
inkscape-ae365593f3650fcf45cb04b5413472d02c6560c8.zip
(cppcheck and janitorial tasks:) C-style casting to C++-style casting
(bzr r10938)
Diffstat (limited to 'src/ui/widget/imageicon.cpp')
-rw-r--r--src/ui/widget/imageicon.cpp3
1 files changed, 1 insertions, 2 deletions
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<SPDocument *>(docArg);
doc->doRef();
document = doc;