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

Noel Grandin noel at peralex.com
Fri Jul 24 05:36:42 PDT 2015


 sw/source/filter/ww8/ww8graf.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 633788b18844bb3d8c6e73fd19817fc18d223c23
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Jul 24 14:36:01 2015 +0200

    loplugin:redundantcast
    
    Change-Id: I6564f151e1ebce95fc7cef0a46d470003a377839

diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 4bca571..e030160 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -2549,7 +2549,7 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( long nGrafAnchorCp )
     {
         if ((*it)->pObj == pObject)
         {
-            pRecord = const_cast<SvxMSDffImportRec *>(it->get());
+            pRecord = it->get();
             break;
         }
     }
@@ -2682,7 +2682,7 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( long nGrafAnchorCp )
                 for (MSDffImportRecords::const_iterator it = aData.begin();
                         it != aData.end(); ++it)
                 {
-                    pRecord = const_cast<SvxMSDffImportRec *>(it->get());
+                    pRecord = it->get();
                     if (pRecord->pObj && pRecord->aTextId.nTxBxS)
                     { // #i52825# pRetFrameFormat can be NULL
                         pRetFrameFormat = MungeTextIntoDrawBox(pRecord->pObj,


More information about the Libreoffice-commits mailing list