From a9b73fa352ab489d2ce06ed587873ec5f9957add Mon Sep 17 00:00:00 2001 From: Ylva Selling Date: Thu, 15 Apr 2021 16:22:32 +0200 Subject: [PATCH] Remove unneccessary while loop --- modules/skybrowser/src/wwtdatahandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/skybrowser/src/wwtdatahandler.cpp b/modules/skybrowser/src/wwtdatahandler.cpp index 70e7b9b7b3..feca6b9aee 100644 --- a/modules/skybrowser/src/wwtdatahandler.cpp +++ b/modules/skybrowser/src/wwtdatahandler.cpp @@ -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) {