summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-03 19:11:25 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-04 01:10:04 +0100
commit82944c9f3093a2cb7eda382ef54615c3b7bd8f54 (patch)
tree0225134c82f45bca13ed463698039fb722c6f231 /sw
parent354da848ad9ca890e8f977bf210eb9952b72f6cb (diff)
unnecessary cast
Change-Id: Ie86244d8180cba07260af4b8c82c4ce588a66528
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/vnew.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/view/vnew.cxx b/sw/source/core/view/vnew.cxx
index 6432d3af3870..3cfe6798e6d5 100644
--- a/sw/source/core/view/vnew.cxx
+++ b/sw/source/core/view/vnew.cxx
@@ -358,7 +358,7 @@ SwViewShell::~SwViewShell()
GetLayout()->DeRegisterShell( this );
if(mpDoc->getIDocumentLayoutAccess().GetCurrentViewShell()==this)
mpDoc->getIDocumentLayoutAccess().SetCurrentViewShell( this->GetNext()!=this ?
- static_cast<SwViewShell*>(this->GetNext()) : NULL );
+ this->GetNext() : nullptr );
}
delete mpTmpRef;