From 4f3422c58ed4fc14b222cd474843affb9cc509c4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 9 Dec 2024 20:02:33 +0100 Subject: Various clang-tidy fixes. --- src/task_ar.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/task_ar.cc') diff --git a/src/task_ar.cc b/src/task_ar.cc index b15ad4e..25a49a2 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -17,6 +17,7 @@ TaskAR::TaskAR(const ctor::build_configuration& config, const std::vector& objects, const std::string& sourceDir) : Task(config, settings, sourceDir) + , _targetFile(target) , config(config) , settings(settings) , sourceDir(sourceDir) @@ -24,7 +25,6 @@ TaskAR::TaskAR(const ctor::build_configuration& config, target_type = ctor::target_type::static_library; output_system = config.system; - _targetFile = target; auto toolchain = getToolChain(config.system); _targetFile = extension(toolchain, target_type, config.system, _targetFile); for(const auto& object : objects) @@ -36,7 +36,7 @@ TaskAR::TaskAR(const ctor::build_configuration& config, for(const auto& dep : config.depends) { - depFiles.push_back(dep); + depFiles.emplace_back(dep); } flagsFile = std::filesystem::path(settings.builddir) / cleanUp(sourceDir) / targetFile().stem(); -- cgit v1.2.3