diff options
author | 2016-08-31 16:01:52 -0800 | |
---|---|---|
committer | 2016-08-31 17:17:24 -0700 | |
commit | 7a1210bdbdade7210d48db287065ecac950338aa (patch) | |
tree | c39be641a1072944866b16d3daed4204c9bb5543 /tensorflow/core/lib/jpeg | |
parent | 62c159ffe847eeb788550a32b8be572e41055022 (diff) |
Fix ~63 ClangTidy - Performance findings in TensorFlow.
Change: 131891101
Diffstat (limited to 'tensorflow/core/lib/jpeg')
-rw-r--r-- | tensorflow/core/lib/jpeg/jpeg_mem.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/lib/jpeg/jpeg_mem.cc b/tensorflow/core/lib/jpeg/jpeg_mem.cc index 9a317f1fd2..ac12798322 100644 --- a/tensorflow/core/lib/jpeg/jpeg_mem.cc +++ b/tensorflow/core/lib/jpeg/jpeg_mem.cc @@ -23,6 +23,7 @@ limitations under the License. #include <algorithm> #include <memory> #include <string> +#include <utility> #include "tensorflow/core/lib/jpeg/jpeg_handle.h" #include "tensorflow/core/platform/logging.h" @@ -52,7 +53,7 @@ class FewerArgsForCompiler { : datasize_(datasize), flags_(flags), pnwarn_(nwarn), - allocate_output_(allocate_output), + allocate_output_(std::move(allocate_output)), height_read_(0), height_(0), stride_(0) { |