From 871a15bf58282bacda8a71a41d34deab5a90dc47 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 6 Jun 2020 14:55:53 -0700 Subject: [PATCH] [clang-tidy] fix automatic move warning Found with performance-no-automatic-move Signed-off-by: Rosen Penev --- src/reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.cpp b/src/reader.cpp index e97cab7d0..3fa37496f 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1430,7 +1430,7 @@ static std::function get_autosuggestion_performer // this should use shared_ptr return [=]() -> autosuggestion_result_t { ASSERT_IS_BACKGROUND_THREAD(); - const autosuggestion_result_t nothing = {}; + autosuggestion_result_t nothing = {}; operation_context_t ctx = get_bg_context(vars, generation_count); if (ctx.check_cancel()) { return nothing;