From e609841e8f96d4898f080d1b06a753dbe346db36 Mon Sep 17 00:00:00 2001 From: jailletc36 Date: Fri, 23 Nov 2012 22:59:29 +0100 Subject: cppCheck: remove dead assignment and dead variables Change-Id: I3f0eae93be7f362ff70f8a544c46cd500d2ca50c Signed-off-by: jailletc36 Reviewed-on: https://gerrit.libreoffice.org/1153 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- connectivity/source/drivers/postgresql/pq_xcontainer.cxx | 1 - sc/source/filter/excel/xepivot.cxx | 1 - svx/source/dialog/svxruler.cxx | 1 - vcl/unx/kde4/KDESalGraphics.cxx | 1 - 4 files changed, 4 deletions(-) diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx index e28c7f2cb8fa..a93a6c51b1b8 100644 --- a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx +++ b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx @@ -339,7 +339,6 @@ void Container::rename( const rtl::OUString &oldName, const rtl::OUString &newNa newValue = m_values[nIndex]; m_name2index.erase( ii ); m_name2index[ newName ] = nIndex; - newValue = m_values[nIndex]; } } fire( ReplacedBroadcaster( *this, newName, newValue, oldName ) ); diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx index 85e36e53dfad..9e4c974f15a7 100644 --- a/sc/source/filter/excel/xepivot.cxx +++ b/sc/source/filter/excel/xepivot.cxx @@ -549,7 +549,6 @@ void XclExpPCField::InsertNumDateGroupItems( const ScDPObject& rDPObj, const ScD ScSheetDPData aDPData(GetDocPtr(), *pSrcDesc, *pCache); long nDim = GetFieldIndex(); - const std::vector< SCROW > aOrignial = aDPData.GetColumnEntries(nDim); // get the string collection with generated grouping elements ScDPNumGroupDimension aTmpDim( rNumInfo ); if( nDatePart != 0 ) diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index c22bf61a8cda..0cfa756e800a 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -2514,7 +2514,6 @@ void SvxRuler::PrepareProportional_Impl(RulerType eType) long lWidth=0; sal_uInt16 nStart; sal_uInt16 nIdx=GetDragAryPos(); - lWidth=0; long lActWidth=0; long lActBorderSum; long lOrigLPos; diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index fdbbbbdc6b1d..1512da22d587 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -177,7 +177,6 @@ namespace if( s_nFrameWidth < 0 ) { // fill in a default - s_nFrameWidth = 2; QFrame aFrame( NULL ); aFrame.setFrameRect( QRect(0, 0, 100, 30) ); aFrame.setFrameStyle( QFrame::StyledPanel | QFrame::Sunken ); -- cgit