summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-03 18:12:55 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-04 01:09:53 +0100
commitf3cebf364414068f8e5f4105a64fcff0dc29ecc9 (patch)
tree23ef4b924280457b25972f735dd00d52a404b47d /sw
parentf367924f17f43448e7077e524145229549005ee2 (diff)
unnecessary cast
Change-Id: I606960e54719700d0bc3b5c2dee6f2c1f2ee0b1b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/newfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx
index aea44807d7a2..041267a51f16 100644
--- a/sw/source/core/layout/newfrm.cxx
+++ b/sw/source/core/layout/newfrm.cxx
@@ -415,7 +415,7 @@ void SwRootFrm::DeRegisterShell( SwViewShell *pSh )
{
// Activate some shell if possible
if ( pCurrShell == pSh )
- pCurrShell = pSh->GetNext() != pSh ? static_cast<SwViewShell*>(pSh->GetNext()) : 0;
+ pCurrShell = pSh->GetNext() != pSh ? pSh->GetNext() : nullptr;
// Doesn't matter anymore
if ( pWaitingCurrShell == pSh )