summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbatablehelper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-09 12:39:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-09 12:50:03 +0000
commit86280b1f683fc155d695d23a47f5a36906288fc6 (patch)
tree2175c87c9ce428df84aa51b0963299099f25d602 /sw/source/ui/vba/vbatablehelper.cxx
parentf6217fad81482d0225fa88b4ef8eab16a9757ece (diff)
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'sw/source/ui/vba/vbatablehelper.cxx')
-rw-r--r--sw/source/ui/vba/vbatablehelper.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx
index 452ba5024daf..bb65a842d508 100644
--- a/sw/source/ui/vba/vbatablehelper.cxx
+++ b/sw/source/ui/vba/vbatablehelper.cxx
@@ -267,12 +267,10 @@ void SwVbaTableHelper::SetColWidth( sal_Int32 _width, sal_Int32 nCol, sal_Int32
SwTabCols aOldCols;
InitTabCols( aOldCols, pStart, bCurRowOnly );
- SwTwips nWidth = 0;
-
SwTabCols aCols( aOldCols );
if ( aCols.Count() > 0 )
{
- nWidth = GetColWidth( aCols, nCol);
+ SwTwips nWidth = GetColWidth( aCols, nCol);
int nDiff = (int)(nNewWidth - nWidth);
if( !nCol )