- 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:
alexey.lysiuk 2019-03-09 16:36:12 +02:00
parent bc69941514
commit 784e0347c0

View file

@ -66,7 +66,7 @@ zip_file_t *zip_fopen(zip_t *zipfile, const char *filename)
if (!zipfile || !filename) return NULL;
auto lump = zipfile->FindLump(filename);
if (!lump) return NULL;
return new FileReader(std::move(lump->NewReader()));
return new FileReader(lump->NewReader());
}
void zip_fclose(zip_file_t *zippedfile)