We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad270ad commit 52498b2Copy full SHA for 52498b2
tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp
@@ -56,10 +56,10 @@ namespace NEnumSerializationRuntime {
56
}
57
} else {
58
for (const TEnumStringPair& it : namesInitializer) {
59
- mapValueToName.emplace(it.Key, it.Name);
+ mapValueToName.emplace(it.Key, TString(it.Name));
60
61
for (const TEnumStringPair& it : valuesInitializer) {
62
- mapNameToValue.emplace(it.Name, it.Key);
+ mapNameToValue.emplace(TString(it.Name), it.Key);
63
64
65
Names = std::move(mapValueToName);
0 commit comments