summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjailletc36 <christophe.jaillet@wanadoo.fr>2012-11-23 22:59:29 +0100
committerEike Rathke <erack@redhat.com>2012-11-25 12:19:22 +0000
commite609841e8f96d4898f080d1b06a753dbe346db36 (patch)
treeaeedde44384cf6b698fc22bcef6ce38adabc81ca
parentff7eb03c4ad1027eb7dbcac73858f726ae558915 (diff)
cppCheck: remove dead assignment and dead variables
Change-Id: I3f0eae93be7f362ff70f8a544c46cd500d2ca50c Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1153 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--connectivity/source/drivers/postgresql/pq_xcontainer.cxx1
-rw-r--r--sc/source/filter/excel/xepivot.cxx1
-rw-r--r--svx/source/dialog/svxruler.cxx1
-rw-r--r--vcl/unx/kde4/KDESalGraphics.cxx1
4 files changed, 0 insertions, 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 );