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

Stephan Bergmann sbergman at redhat.com
Tue Aug 12 05:21:11 PDT 2014


 sw/source/core/txtnode/thints.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e9d056ff4a28a4e7be833c22fd6d1e78f245ee43
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Aug 12 14:20:28 2014 +0200

    Remove invalid and unnecessary downcast
    
    Change-Id: I2c4daa7057a4faf020b96b587c7a8348adeaeb58

diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index d557064..49a260f 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -1119,7 +1119,7 @@ void SwTxtNode::DestroyAttr( SwTxtAttr* pAttr )
                 // zeichengebundener Frames" in fesh.cxx, SwFEShell::DelFmt()
                 SwFrmFmt* pFmt = pAttr->GetFlyCnt().GetFrmFmt();
                 if( pFmt )      // vom Undo auf 0 gesetzt ??
-                    pDoc->DelLayoutFmt( (SwFlyFrmFmt*)pFmt );
+                    pDoc->DelLayoutFmt( pFmt );
             }
             break;
 


More information about the Libreoffice-commits mailing list