File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,8 @@ bool Valuable::SerializedStrEqual(const std::string_view& s) const {
950
950
#endif
951
951
}
952
952
953
- Valuable::Valuable (std::string_view s, const Valuable::va_names_t & vaNames, bool itIsOptimized) {
953
+ Valuable::Valuable (std::string_view s, const Valuable::va_names_t & vaNames, bool itIsOptimized)
954
+ {
954
955
#if !defined(NDEBUG) && !defined(NOOMDEBUG)
955
956
if (s.empty ()) {
956
957
IMPLEMENT
@@ -1084,6 +1085,9 @@ bool Valuable::SerializedStrEqual(const std::string_view& s) const {
1084
1085
if (itIsOptimized)
1085
1086
v.MarkAsOptimized ();
1086
1087
Become (std::move (v));
1088
+ } else if (vaNames.empty ()) {
1089
+ Valuable varless (s, nullptr , itIsOptimized);
1090
+ Become (std::move (varless));
1087
1091
} else {
1088
1092
Become (Valuable (s, vaNames.begin ()->second .getVaHost (), itIsOptimized));
1089
1093
}
You can’t perform that action at this time.
0 commit comments