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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user