Add missing return statement to to_string functions on *Flags. (#287)
This commit is contained in:
committed by
Markus Tavenrath
parent
05497cb191
commit
9a4f863d6e
@@ -669,7 +669,8 @@ void writeBitmaskToStringFunction(std::ostream & os, std::string const& bitmaskN
|
||||
static const std::string bodyTemplate = R"(
|
||||
if ( !value ) return "{}";
|
||||
std::string result;
|
||||
${cases})";
|
||||
${cases}
|
||||
return result;)";
|
||||
functionBody = replaceWithMap(bodyTemplate, { { "cases", casesString } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user