Skip to content

Commit

Permalink
add an initializer to silence a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Mar 11, 2021
1 parent 38f6d4c commit cd387d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EnumToString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const char* TiletypeVariantToString(df::tiletype_variant input)

df::tiletype_shape StringToTiletypeShape(const char* input)
{
df::tiletype_shape t;
df::tiletype_shape t{};
if (input && find_enum_item(&t, input))
{
return t;
Expand All @@ -35,7 +35,7 @@ df::tiletype_shape StringToTiletypeShape(const char* input)
}
df::tiletype_special StringToTiletypeSpecial(const char* input)
{
df::tiletype_special t;
df::tiletype_special t{};
if (input && find_enum_item(&t, input))
{
return t;
Expand All @@ -44,7 +44,7 @@ df::tiletype_special StringToTiletypeSpecial(const char* input)
}
df::tiletype_material StringToTiletypeMaterial(const char* input)
{
df::tiletype_material t;
df::tiletype_material t{};
if (input && find_enum_item(&t, input))
{
return t;
Expand All @@ -53,7 +53,7 @@ df::tiletype_material StringToTiletypeMaterial(const char* input)
}
df::tiletype_variant StringToTiletypeVariant(const char* input)
{
df::tiletype_variant t;
df::tiletype_variant t{};
if (input && find_enum_item(&t, input))
{
return t;
Expand Down

0 comments on commit cd387d9

Please sign in to comment.