2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Code style improvements

This commit is contained in:
Jack Andersen
2019-09-30 21:23:35 -10:00
parent 0b30fedef5
commit 8a73a8ee48
26 changed files with 719 additions and 833 deletions

View File

@@ -91,7 +91,7 @@ void Project::ConfigFile::removeLine(std::string_view refLine) {
}
for (auto it = m_lines.begin(); it != m_lines.end();) {
if (!(*it).compare(refLine)) {
if (*it == refLine) {
it = m_lines.erase(it);
continue;
}
@@ -106,7 +106,7 @@ bool Project::ConfigFile::checkForLine(std::string_view refLine) {
}
for (const std::string& line : m_lines)
if (!line.compare(refLine))
if (line == refLine)
return true;
return false;
}