Remove unneccessary while loop

This commit is contained in:
Ylva Selling
2021-04-15 16:22:32 +02:00
parent 5653823522
commit a9b73fa352

View File

@@ -110,7 +110,7 @@ namespace openspace {
XMLElement* ptr = node->FirstChildElement();
// Go through all siblings of ptr and open folders recursively
while (ptr) {
// Iterate through all siblings at same level and load
while (ptr) {
// If node is an image or place, load it
@@ -128,7 +128,7 @@ namespace openspace {
ptr = ptr->NextSiblingElement();
}
}
}
int WWTDataHandler::loadImage(tinyxml2::XMLElement* node, std::string collectionName) {