Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffthemedio committed May 12, 2024
1 parent 5307af6 commit bb52512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion universe/ValueRefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ namespace {
return retval;
};


static constexpr auto name_or_0 = [](const UniverseObject* obj) noexcept -> std::string_view
{ return obj ? obj->Name() : "0"; };
{ return obj ? std::string_view{obj->Name()} : std::string_view{"0"}; };

ErrorLogger() << "FollowReference : top level object (" << to_string(ref_type)
<< ") not defined in scripting context. strings: " << ref_strings(first, last)
Expand Down

0 comments on commit bb52512

Please sign in to comment.