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:
parent
c1ae793800
commit
869ca07b20
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ void SaveTool::fileUpdateEvent(SDL_Event& event) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(_modifiedBySaveTool && _currentMass->filename() == filename) {
|
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);
|
nullptr, OPEN_EXISTING, 0, nullptr);
|
||||||
if(handle && handle != INVALID_HANDLE_VALUE) {
|
if(handle && handle != INVALID_HANDLE_VALUE) {
|
||||||
CloseHandle(handle);
|
CloseHandle(handle);
|
||||||
|
|
Loading…
Reference in a new issue