summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-03-02 06:57:24 +0100
committerAndras Timar <andras.timar@collabora.com>2024-03-07 13:54:21 +0100
commit1fec6f205799dadd1b6a513ea4b9dcb13728a16f (patch)
treef3a5459694cbd5dca5df79d768aab9efd19d2527 /sc
parent5586c5fc4c21983535a7a395c9767ad489a52f75 (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> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164402
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 25dfc5c7d6cc..04c7c008a4d6 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -1786,8 +1786,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());
@@ -1854,8 +1853,6 @@ void ScDrawLayer::CopyToClip( ScDocument* pClipDoc, SCTAB nTab, const tools::Rec
// charts are not updated
}
}
-
- pOldObject = aIter.Next();
}
}