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:
parent
7d0caf9eec
commit
4b5d64f9e5
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user