mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- removed excessive std::move() reported by Clang
src/utility/xlsxread/xlsxio_read.cpp:69:27: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
This commit is contained in:
parent
bc69941514
commit
784e0347c0
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ zip_file_t *zip_fopen(zip_t *zipfile, const char *filename)
|
||||||
if (!zipfile || !filename) return NULL;
|
if (!zipfile || !filename) return NULL;
|
||||||
auto lump = zipfile->FindLump(filename);
|
auto lump = zipfile->FindLump(filename);
|
||||||
if (!lump) return NULL;
|
if (!lump) return NULL;
|
||||||
return new FileReader(std::move(lump->NewReader()));
|
return new FileReader(lump->NewReader());
|
||||||
}
|
}
|
||||||
|
|
||||||
void zip_fclose(zip_file_t *zippedfile)
|
void zip_fclose(zip_file_t *zippedfile)
|
||||||
|
|
Loading…
Reference in a new issue