[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Tue Jun 9 05:12:54 PDT 2015


 sw/source/core/unocore/unoobj2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 366eae3ad3ed97fc2637066c8a0c66ae0db32ed6
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 9 14:12:24 2015 +0200

    lplugin:redundantcast
    
    Change-Id: I028563d4b93d5671b87f07c63c4b705bbabff676

diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 5eedef6..a279fb6 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -1682,8 +1682,8 @@ bool SwXParaFrameEnumerationImpl::CreateNextObject()
     if (!m_vFrames.size())
         return false;
 
-    SwFrameFormat* const pFormat = static_cast<SwFrameFormat*>(const_cast<SwModify*>(
-            m_vFrames.front()->GetRegisteredIn()));
+    SwFrameFormat* const pFormat = static_cast<SwFrameFormat*>(
+            m_vFrames.front()->GetRegisteredIn());
     m_vFrames.pop_front();
     // the format should be valid here, otherwise the client
     // would have been removed by PurgeFrameClients


More information about the Libreoffice-commits mailing list