summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-08-15 00:12:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-08-15 00:12:45 +0200
commit226f212668550a6ca8a128a21fa70cbcdafcb4b2 (patch)
tree02e8b9f4aa618aeae1e6317b19c74667f5d99958 /chart2
parent1d6ef2446eaaf9e412b76e7b792d6f0af1783460 (diff)
cppcheck: fix redundant assignments
Change-Id: Ia4c81fefc914aaaead6f8e47ae2818e139357bb4
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index 620bbda26bb8..460d3dbaf5a1 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 );
}