From 633788b18844bb3d8c6e73fd19817fc18d223c23 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Jul 2015 14:36:01 +0200 Subject: loplugin:redundantcast Change-Id: I6564f151e1ebce95fc7cef0a46d470003a377839 --- sw/source/filter/ww8/ww8graf.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 4bca5710d22d..e030160839c5 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(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(it->get()); + pRecord = it->get(); if (pRecord->pObj && pRecord->aTextId.nTxBxS) { // #i52825# pRetFrameFormat can be NULL pRetFrameFormat = MungeTextIntoDrawBox(pRecord->pObj, -- cgit