Avoid string copies for ESM::Variant::getString

This commit is contained in:
Matt 2022-03-06 17:38:58 +00:00 committed by jvoisin
parent 9396cc7592
commit 54e114d83e
4 changed files with 15 additions and 15 deletions

View file

@ -48,7 +48,7 @@ namespace
};
}
std::string ESM::Variant::getString() const
const std::string& ESM::Variant::getString() const
{
return std::get<std::string>(mData);
}