Switch to the C++17 fallthrough attribute.

This commit is contained in:
Sadie Powell 2020-05-11 13:14:14 +01:00
parent 30e7e13298
commit 0a6241a388
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ void CommandParser::TranslateSingleParam(TranslateType to, const std::string& it
}
// If no custom translator was given, fall through
}
/*@fallthrough@*/
[[fallthrough]];
default:
/* Do nothing */
dest.append(item);

View File

@ -362,7 +362,7 @@ struct Parser
case 0xFE:
case 0xFF:
stack.errstr << "Do not save your files as UTF-16 or UTF-32, use UTF-8!\n";
/*@fallthrough@*/
[[fallthrough]];
default:
throw CoreException("Syntax error - start of tag expected");
}