summaryrefslogtreecommitdiffstats
path: root/src/dom/domptr.h
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-01-23 18:45:08 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-01-23 18:45:08 +0000
commit4d368c0ed0441dfd9e0cda7fa1c0f370180fa4ae (patch)
treeacea66c8bca4772a4d23a508cbab679bb678616f /src/dom/domptr.h
parentClean up more GObject type definitions (diff)
downloadinkscape-4d368c0ed0441dfd9e0cda7fa1c0f370180fa4ae.tar.gz
inkscape-4d368c0ed0441dfd9e0cda7fa1c0f370180fa4ae.zip
cppcheck: style and performance
(bzr r12056)
Diffstat (limited to 'src/dom/domptr.h')
-rw-r--r--src/dom/domptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dom/domptr.h b/src/dom/domptr.h
index 5a1299867..aa9d4c208 100644
--- a/src/dom/domptr.h
+++ b/src/dom/domptr.h
@@ -153,7 +153,7 @@ public:
template<class Y> Ptr &operator=(const Y * ref)
{
decrementRefCount(_ref);
- _ref = (Y *) ref;
+ _ref = const_cast<Y *>(ref);
incrementRefCount(_ref);
return *this;
}