From e8909c6fc1f49a1153631db8183dbc50d01cd215 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Tue, 20 Dec 2022 21:51:48 +0100 Subject: [PATCH] Applied bugprone-use-after-move clang-tidy fixes --- src/common/model/source_file.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/model/source_file.h b/src/common/model/source_file.h index 5117be49..f56c1f39 100644 --- a/src/common/model/source_file.h +++ b/src/common/model/source_file.h @@ -92,7 +92,8 @@ public: { LOG_DBG("Adding source file: {}, {}", f->name(), f->full_name(true)); - add_element(f->path(), std::move(f)); + const auto path = f->path(); + add_element(path, std::move(f)); } std::filesystem::path fs_path(const std::filesystem::path &base = {}) const