Fix "control reaches end of non-void function" warning.

This is harmless because it will always be set to one of the items
in the TargetType enum.
This commit is contained in:
Sadie Powell 2020-01-28 16:55:06 +00:00
parent c2a3321540
commit 64df216836

View File

@ -167,5 +167,10 @@ class CoreExport MessageTarget
case TYPE_SERVER:
return *Get<std::string>();
}
// We should never reach this point during a normal execution but
// handle it just in case.
static const std::string target = "*";
return target;
}
};