diff --git a/plugins/robots/checker/twoDModelRunner/reporter.cpp b/plugins/robots/checker/twoDModelRunner/reporter.cpp index 838c7623fd..d9192bcfa6 100644 --- a/plugins/robots/checker/twoDModelRunner/reporter.cpp +++ b/plugins/robots/checker/twoDModelRunner/reporter.cpp @@ -123,10 +123,17 @@ 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: tmp = "info"; - case Level::error: tmp = "error"; - case Level::log: tmp = "log"; + case Level::information: + tmp = "info"; + break; + case Level::error: + tmp = "error"; + break; + case Level::log: + tmp = "log"; + break; } return tmp; }