mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Avoid string copies for ESM::Variant::getString
This commit is contained in:
parent
9396cc7592
commit
54e114d83e
4 changed files with 15 additions and 15 deletions
|
@ -48,7 +48,7 @@ namespace
|
|||
};
|
||||
}
|
||||
|
||||
std::string ESM::Variant::getString() const
|
||||
const std::string& ESM::Variant::getString() const
|
||||
{
|
||||
return std::get<std::string>(mData);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue