From 91f2dcdfe1adc2965bb3ea4a1dacc2ffe3b4947a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 6 Dec 2023 16:48:12 +0100
Subject: [PATCH] =?UTF-8?q?MEX=20files:=20use=20=E2=80=9Cauto=E2=80=9D=20w?=
 =?UTF-8?q?hen=20initializing=20with=20a=20template=20cast=20to=20avoid=20?=
 =?UTF-8?q?duplicating=20the=20type=20name?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Automatically detected by clang-tidy with modernize-use-auto check.
---
 mex/sources/libkorder/tl/t_polynomial.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mex/sources/libkorder/tl/t_polynomial.hh b/mex/sources/libkorder/tl/t_polynomial.hh
index dcadee0208..f8f7f22f44 100644
--- a/mex/sources/libkorder/tl/t_polynomial.hh
+++ b/mex/sources/libkorder/tl/t_polynomial.hh
@@ -202,7 +202,7 @@ public:
     PowerProvider pwp(xval);
     for (int i = 1; i <= tp.maxdim; i++)
       {
-        const _Stype& xpow = pwp.getNext<_Stype>();
+        const auto& xpow = pwp.getNext<_Stype>();
         for (int j = 0; j <= tp.maxdim - i; j++)
           if (tp.check(Symmetry {i + j}))
             {
-- 
GitLab