1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +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
{