SaveTool: remove an extraneous call to data().

Corrade arrays implicitly decay to their T* form (wchar_t here), after
all.
This commit is contained in:
Guillaume Jacquemin 2022-04-04 09:58:12 +02:00
parent c1ae793800
commit 869ca07b20
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void SaveTool::fileUpdateEvent(SDL_Event& event) {
}
else {
if(_modifiedBySaveTool && _currentMass->filename() == filename) {
auto handle = CreateFileW(Utility::Unicode::widen(Containers::StringView{filename}).data(), GENERIC_READ, 0,
auto handle = CreateFileW(Utility::Unicode::widen(Containers::StringView{filename}), GENERIC_READ, 0,
nullptr, OPEN_EXISTING, 0, nullptr);
if(handle && handle != INVALID_HANDLE_VALUE) {
CloseHandle(handle);