Skip to content

Commit

Permalink
Add break in case label (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinyazevR authored Oct 6, 2024
1 parent 331ed88 commit cc6f507
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions plugins/robots/checker/twoDModelRunner/reporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cc6f507

Please sign in to comment.