1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00

inline asUTF8() instead of constructing a whole new string_view

This commit is contained in:
Christian Bouwense 2023-07-24 14:41:17 -04:00
parent 7d0caf9eec
commit 4b5d64f9e5

View file

@ -301,8 +301,7 @@ namespace MWGui
if (mSaving)
{
std::string_view nameAsStringView = std::basic_string_view(mSaveNameEdit->getCaption().asUTF8().c_str());
MWBase::Environment::get().getStateManager()->saveGame(nameAsStringView, mCurrentSlot);
MWBase::Environment::get().getStateManager()->saveGame(mSaveNameEdit->getCaption().asUTF8(), mCurrentSlot);
}
else
{