diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-05 12:14:42 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-05 12:14:42 +0000 |
| commit | ae365593f3650fcf45cb04b5413472d02c6560c8 (patch) | |
| tree | d5cf036219d31e69f186fe3bac12fcd8fbb2ff30 /src/ui/widget/imageicon.cpp | |
| parent | cppchecktells us: Using signed char type as array index. If the value can be ... (diff) | |
| download | inkscape-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.cpp | 3 |
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; |
