Add missing return statement to to_string functions on *Flags. (#287)

This commit is contained in:
Andreas Süßenbach
2019-02-05 10:59:17 +01:00
committed by Markus Tavenrath
parent 05497cb191
commit 9a4f863d6e
2 changed files with 67 additions and 1 deletions

View File

@@ -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 } });
}