summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno/unotxdoc.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-08 16:40:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-08 16:47:31 +0200
commite26dfe3a29eed9982cd8e6e3df4912a6210d09b0 (patch)
tree74da95689961343d37f149d8368d2091c74eadab /sw/source/uibase/uno/unotxdoc.cxx
parent9af0403ddc024b843c214eb43923692fb1dfd9eb (diff)
loplugin:redundantcast: redundant static_casts in sw
Change-Id: I09c1ebaf5742e983ee05942a4c7c17c6aa5179cc
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index a4d3caa7f8ca..da2675e47559 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -1385,8 +1385,8 @@ Reference< drawing::XDrawPage > SwXTextDocument::getDrawPage() throw( RuntimeEx
throw RuntimeException();
if(!mxXDrawPage.is())
{
- static_cast<SwXTextDocument*>(this)->pDrawPage = new SwXDrawPage(pDocShell->GetDoc());
- static_cast<SwXTextDocument*>(this)->mxXDrawPage = pDrawPage;
+ pDrawPage = new SwXDrawPage(pDocShell->GetDoc());
+ mxXDrawPage = pDrawPage;
// Create a Reference to trigger the complete initialization of the
// object. Otherwise in some corner cases it would get initialized
// at ::InitNewDoc -> which would get called during