summaryrefslogtreecommitdiff
path: root/sw/source/uibase/frmdlg
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-01-16 22:59:20 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-19 07:14:45 +0000
commit54defd1bd3359c95e45891c7294847d0cebca753 (patch)
tree75ff66d79c1a2cc98fd61e7489eba2cd8bbafdf3 /sw/source/uibase/frmdlg
parentf5f7a69628ad316298febe7b51234428a7896ff9 (diff)
fdo#39440 sw: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I0de4e6278fb564c299722a9e23eb67d0999c4e31 Reviewed-on: https://gerrit.libreoffice.org/13966 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/frmdlg')
-rw-r--r--sw/source/uibase/frmdlg/colex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx
index 8943c093f9ab..89038314a97d 100644
--- a/sw/source/uibase/frmdlg/colex.cxx
+++ b/sw/source/uibase/frmdlg/colex.cxx
@@ -298,11 +298,10 @@ void SwColExample::DrawPage( const Point& rOrg,
}
}
- int nDist;
for( i = 0; i < nColumnCount - 1; i++)
{
int nGutter = pColMgr->GetGutterWidth(i);
- nDist = pColMgr->GetColWidth( i ) + nGutter;
+ int nDist = pColMgr->GetColWidth( i ) + nGutter;
nDist -= (i == 0) ?
nGutter/2 :
0;