chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx |   
12 +++-------
 1 file changed, 4 insertions(+), 8 deletions(-)

New commits:
commit 226f212668550a6ca8a128a21fa70cbcdafcb4b2
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Thu Aug 15 00:12:45 2013 +0200

    cppcheck: fix redundant assignments
    
    Change-Id: Ia4c81fefc914aaaead6f8e47ae2818e139357bb4

diff --git 
a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx 
b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index 620bbda..460d3db 100644
--- a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
@@ -327,8 +327,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
 
                 // translate model name to UI-name for predefined entries, so
                 // that the correct entry is chosen in the list of UI-names
-                XLineDashItem * pItemToPut = & aItem;
-                pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+                XLineDashItem * pItemToPut = aItem.checkForUniqueItem( & 
m_rDrawModel );
 
                 rOutItemSet.Put( * pItemToPut );
             }
@@ -351,8 +350,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
 
                 // translate model name to UI-name for predefined entries, so
                 // that the correct entry is chosen in the list of UI-names
-                XFillGradientItem * pItemToPut = & aItem;
-                pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+                XFillGradientItem * pItemToPut = aItem.checkForUniqueItem( & 
m_rDrawModel );
 
                 rOutItemSet.Put( * pItemToPut );
             }
@@ -375,8 +373,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
 
                 // translate model name to UI-name for predefined entries, so
                 // that the correct entry is chosen in the list of UI-names
-                XFillHatchItem * pItemToPut = & aItem;
-                pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+                XFillHatchItem * pItemToPut = aItem.checkForUniqueItem( & 
m_rDrawModel );
 
                 rOutItemSet.Put( * pItemToPut );
             }
@@ -394,8 +391,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
 
                 // translate model name to UI-name for predefined entries, so
                 // that the correct entry is chosen in the list of UI-names
-                XFillBitmapItem * pItemToPut = & aItem;
-                pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+                XFillBitmapItem * pItemToPut = aItem.checkForUniqueItem( & 
m_rDrawModel );
 
                 rOutItemSet.Put( * pItemToPut );
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to