mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Various random code cleanups
This commit is contained in:
parent
358658fa34
commit
7892541383
73 changed files with 216 additions and 285 deletions
|
@ -52,13 +52,11 @@ void TestVoxelManipulator::testVoxelArea()
|
|||
UASSERT(aa.size() == results.size());
|
||||
|
||||
infostream<<"Result of diff:"<<std::endl;
|
||||
for (std::list<VoxelArea>::const_iterator
|
||||
it = aa.begin(); it != aa.end(); ++it) {
|
||||
for (auto it = aa.begin(); it != aa.end(); ++it) {
|
||||
it->print(infostream);
|
||||
infostream << std::endl;
|
||||
|
||||
std::vector<VoxelArea>::iterator j;
|
||||
j = std::find(results.begin(), results.end(), *it);
|
||||
auto j = std::find(results.begin(), results.end(), *it);
|
||||
UASSERT(j != results.end());
|
||||
results.erase(j);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue