summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-03-02 06:57:24 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2024-03-02 08:44:17 +0100
commita9bcd8a0c0afc4baa53570f7072e64b5ba72f89b (patch)
tree2da2b10fb9c1e1717afaa2cd5e1895c688e3af0d /sc
parent9fb7fb6e47335913abbe26161a7f421d7c6224d7 (diff)
Simplify a bit
Change-Id: I5909dfc0f19b13d53d370f78a5e2853b95f0c1a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164201 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/drwlayer.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 11a2a2a997fb..480b779918d5 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -1784,8 +1784,7 @@ void ScDrawLayer::CopyToClip( ScDocument* pClipDoc, SCTAB nTab, const tools::Rec
ScRange aClipRange = lcl_getClipRangeFromClipDoc(pClipDoc, nTab);
SdrObjListIter aIter( pSrcPage, SdrIterMode::Flat );
- SdrObject* pOldObject = aIter.Next();
- while (pOldObject)
+ while (SdrObject* pOldObject = aIter.Next())
{
// Catch objects where the object itself is inside the rectangle to be copied.
bool bObjectInArea = rRange.Contains(pOldObject->GetCurrentBoundRect());
@@ -1852,8 +1851,6 @@ void ScDrawLayer::CopyToClip( ScDocument* pClipDoc, SCTAB nTab, const tools::Rec
// charts are not updated
}
}
-
- pOldObject = aIter.Next();
}
}