From fe77ada160a327265b035803b23185383c1ac406 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 12 Feb 2021 16:29:08 -0800 Subject: [PATCH] Clean up comments in script XML parsing code I'm partial to slash-asterisk-style comments, so I'll use those here. Also, having a space after the start of comments is good. I've also removed the "Add the script if we have a preceding header" comments since it can be inferred by reading the surrounding code. --- desktop_version/src/editor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 9d007d05..357c83eb 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -1885,7 +1885,6 @@ bool editorclass::load(std::string& _path) { if (headerfound) { - //Add the script if we have a preceding header script.customscripts.push_back(script_); } script_.name = line.substr(0, line.length()-1); @@ -1900,10 +1899,9 @@ bool editorclass::load(std::string& _path) } } - //Add the last script + /* Add the last script */ if (headerfound) { - //Add the script if we have a preceding header script.customscripts.push_back(script_); } }