summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
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/docvw
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/docvw')
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index b97b1863a2ec..397def2ef5f9 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -1020,7 +1020,6 @@ bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,cons
//start the real layout so nothing overlaps anymore
if (aVisiblePostItList.size()>1)
{
- long lSpaceUsed = 0;
int loop = 0;
bool bDone = false;
// if no window is moved anymore we are finished
@@ -1028,7 +1027,7 @@ bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,cons
{
loop++;
bDone = true;
- lSpaceUsed = lTopBorder + GetSpaceBetween();
+ long lSpaceUsed = lTopBorder + GetSpaceBetween();
for(SwSidebarWin_iterator i = aVisiblePostItList.begin(); i != aVisiblePostItList.end() ; ++i)
{
SwSidebarWin_iterator aNextPostIt = i;