Skip to content

Commit

Permalink
GCC 10.3.1 in AltLinux has problems understanding enums
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov authored Aug 28, 2024
1 parent de392b2 commit 2bb4df6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/robots/checker/twoDModelRunner/reporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,15 @@ void Reporter::reportMessages()
}

QString Reporter::levelToString(const Level level) const {
// GCC 10.3.1 in AltLinux has problems understanding enums
// Thus we need this redundant code with a temporary variable
QString tmp;
switch (level) {
case Level::information: return "info";
case Level::error: return "error";
case Level::log: return "log";
case Level::information: tmp = "info";
case Level::error: tmp = "error";
case Level::log: tmp = "log";
}
return tmp;
}

QJsonValue Reporter::variantToJson(const QVariant &value) const
Expand Down

0 comments on commit 2bb4df6

Please sign in to comment.