From 40281c5053dd061e0f9eb6eaac4d65c318d70414 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 20 Nov 2024 15:57:02 +0100
Subject: [PATCH] libkorder: remove unneeded call to std::move
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Variable “init” is of the trivially-copyable type std::initializer_list<int>.

Automatically detected by clang-tidy using performance-move-const-arg check.
---
 mex/sources/libkorder/tl/symmetry.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mex/sources/libkorder/tl/symmetry.hh b/mex/sources/libkorder/tl/symmetry.hh
index 2aba4d9e6..26c616749 100644
--- a/mex/sources/libkorder/tl/symmetry.hh
+++ b/mex/sources/libkorder/tl/symmetry.hh
@@ -76,7 +76,7 @@ public:
   }
   /* Constructor using an initializer list, that gives the contents of the
      Symmetry. Typically used for symmetries of the form yⁿ, yⁿuᵐ, yⁿuᵐσᵏ */
-  Symmetry(std::initializer_list<int> init) : IntSequence(std::move(init))
+  Symmetry(std::initializer_list<int> init) : IntSequence(init)
   {
   }
   // Constructor of implied symmetry for a symmetry and an equivalence class
-- 
GitLab