Skip to content
Permalink
Browse files

Remove combination of std::for_each() and lambda with a rand based loop.

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information...
imikejackson committed Jul 2, 2019
1 parent a519673 commit b354016db9783d37ac5ffb8fdda4966833b0661a
Showing with 5 additions and 1 deletion.
  1. +5 −1 Source/OrientationLib/LaueOps/LaueOps.cpp
@@ -407,7 +407,11 @@ std::vector<QString> LaueOps::GetLaueNames()
std::vector<QString> names;

std::vector<LaueOps::Pointer> ops = getOrientationOpsVector();
std::for_each(ops.begin(), ops.end(), [&](LaueOps::Pointer op) { names.push_back(op->getSymmetryName()); });

for(const auto& op : ops)
{
names.push_back(op->getSymmetryName());
}

return names;
}

0 comments on commit b354016

Please sign in to comment.
You can’t perform that action at this time.