From 784e0347c077a30ef1ad42be560c5ec7b271cfc3 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 9 Mar 2019 16:36:12 +0200 Subject: [PATCH] - 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] --- src/utility/xlsxread/xlsxio_read.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/xlsxread/xlsxio_read.cpp b/src/utility/xlsxread/xlsxio_read.cpp index 48f6de5d8..8a3ee5263 100644 --- a/src/utility/xlsxread/xlsxio_read.cpp +++ b/src/utility/xlsxread/xlsxio_read.cpp @@ -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)