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

Michael Stahl mstahl at redhat.com
Fri Nov 6 04:15:47 PST 2015


 sc/source/core/tool/rangenam.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7ba3301b8fcefb80f657286d4439c06c339743e0
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Nov 6 13:13:07 2015 +0100

    sc: [loplugin:redundantcast]
    
    Change-Id: I12a823be0145a680af8fd5c95b55e461f207d2fc

diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 0b0f50b..40cadca 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -694,7 +694,7 @@ ScRangeName::ScRangeName(const ScRangeName& r)
             OSL_FAIL( "ScRangeName copy-ctor: maIndexToData size doesn't fit");
             maIndexToData.resize(nPos+1, NULL);
         }
-        maIndexToData[nPos] = const_cast<ScRangeData*>(itr.second.get());
+        maIndexToData[nPos] = itr.second.get();
     }
 }
 


More information about the Libreoffice-commits mailing list