summaryrefslogtreecommitdiff
path: root/svx/source/engine3d
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 09:53:05 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-12 07:12:21 +0000
commit875984617cfd6c773eb93f339929eb3fabd3e97b (patch)
treeabb092c1b0d995d55f2f4508801df23377c9cc6d /svx/source/engine3d
parent6bc3c2bdc5279314881b7e950d76d4d813470d11 (diff)
clang-tidy modernize-loop-convert in svx
Change-Id: I09e5243e5dff46ceccef1a707e648ee9cb0c37c5 Reviewed-on: https://gerrit.libreoffice.org/24875 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r--svx/source/engine3d/helperhittest3d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/engine3d/helperhittest3d.cxx b/svx/source/engine3d/helperhittest3d.cxx
index d0f1376fc719..c9b47b3394d2 100644
--- a/svx/source/engine3d/helperhittest3d.cxx
+++ b/svx/source/engine3d/helperhittest3d.cxx
@@ -200,9 +200,9 @@ void getAllHit3DObjectsSortedFrontToBack(
::std::vector< basegfx::B3DPoint > aHitsWithObject;
getAllHit3DObjectWithRelativePoint(aFront, aBack, *pCandidate, aViewInfo3D, aHitsWithObject, false);
- for(size_t a(0); a < aHitsWithObject.size(); a++)
+ for(basegfx::B3DPoint & a : aHitsWithObject)
{
- const basegfx::B3DPoint aPointInViewCoordinates(aViewInfo3D.getObjectToView() * aHitsWithObject[a]);
+ const basegfx::B3DPoint aPointInViewCoordinates(aViewInfo3D.getObjectToView() * a);
aDepthAndObjectResults.push_back(ImplPairDephAndObject(pCandidate, aPointInViewCoordinates.getZ()));
}
}