diff options
Diffstat (limited to 'src/dom/domptr.h')
| -rw-r--r-- | src/dom/domptr.h | 2 |
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; } |
