summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-09 16:24:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-09 16:24:03 +0100
commitc6d645780e96613a6f60b6896702335a0c205944 (patch)
treeb555919ca09406af07efc21c7906693046589cc2
parentda1c96d4cd98876cde8a0ab3ddf3d387646a0ba7 (diff)
Also fix other Ring ctor
...after 8b12e63b60530a2ad3769bc4983cc09bedd34c79 "Don't downcast from Ring<T> base class ctor/dtor to derived class T" Change-Id: I734841a78e272e985d784bd756412e1af90b2df5
-rw-r--r--sw/inc/ring.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/inc/ring.hxx b/sw/inc/ring.hxx
index bfc9318ee9df..8083e959f0e9 100644
--- a/sw/inc/ring.hxx
+++ b/sw/inc/ring.hxx
@@ -127,8 +127,7 @@ namespace sw
{
if( pObj )
{
- value_type* pThis = static_cast< value_type* >(this);
- algo::link_before(pObj, pThis);
+ algo::link_before(pObj, this);
}
}