mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 08:57:09 +00:00
General: Make use of ranged for where applicable
This commit is contained in:
@@ -21,7 +21,7 @@ CRotateNodeCommand::CRotateNodeCommand(
|
||||
{
|
||||
mNodeList.reserve(rkNodes.size());
|
||||
|
||||
foreach (CSceneNode *pNode, rkNodes)
|
||||
for (CSceneNode *pNode : rkNodes)
|
||||
{
|
||||
SNodeRotate Rotate;
|
||||
Rotate.pNode = pNode;
|
||||
@@ -83,7 +83,7 @@ void CRotateNodeCommand::undo()
|
||||
{
|
||||
if (!mpEditor) return;
|
||||
|
||||
foreach (SNodeRotate Rotate, mNodeList)
|
||||
for (SNodeRotate& Rotate : mNodeList)
|
||||
{
|
||||
Rotate.pNode->SetPosition(Rotate.InitialPos);
|
||||
Rotate.pNode->SetRotation(Rotate.InitialRot);
|
||||
@@ -97,7 +97,7 @@ void CRotateNodeCommand::redo()
|
||||
{
|
||||
if (!mpEditor) return;
|
||||
|
||||
foreach (SNodeRotate Rotate, mNodeList)
|
||||
for (SNodeRotate& Rotate : mNodeList)
|
||||
{
|
||||
Rotate.pNode->SetPosition(Rotate.NewPos);
|
||||
Rotate.pNode->SetRotation(Rotate.NewRot);
|
||||
|
||||
Reference in New Issue
Block a user