summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdpage.cxx
diff options
context:
space:
mode:
authorMichael Dunphy <mdunphy@uwaterloo.ca>2015-03-22 01:04:12 +0100
committerDavid Tardon <dtardon@redhat.com>2015-03-23 08:48:56 +0000
commitda631972229389d40e0502e02ff4e2c0761ca3fc (patch)
tree2218df146e11799e5089a6436b306ca81e2d720b /svx/source/svdraw/svdpage.cxx
parentb0c1d2a7f368ed8af46d358e4b4350eb435fa241 (diff)
fdo#39440 cppcheck cleanliness
Reduce scope of local variables. Change-Id: I5f06dc0d9d16e92a7a0afb599eb3a93d9d5cc878 Reviewed-on: https://gerrit.libreoffice.org/14943 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'svx/source/svdraw/svdpage.cxx')
-rw-r--r--svx/source/svdraw/svdpage.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 757b517560d6..84bad358cc50 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -742,11 +742,10 @@ void SdrObjList::UnGroupObj( size_t nObjNum )
// the position at which we insert the members of rUngroupGroup
size_t nInsertPos( pUngroupGroup->GetOrdNum() );
- SdrObject* pObj;
const size_t nCount = pSrcLst->GetObjCount();
for( size_t i=0; i<nCount; ++i )
{
- pObj = pSrcLst->RemoveObject(0);
+ SdrObject* pObj = pSrcLst->RemoveObject(0);
SdrInsertReason aReason(SDRREASON_VIEWCALL, pUngroupGroup);
InsertObject(pObj, nInsertPos, &aReason);
++nInsertPos;