MEX files: use “auto” when initializing with a template cast to avoid duplicating the type name

Automatically detected by clang-tidy with modernize-use-auto check.
new-samplers
Sébastien Villemot 2023-12-06 16:48:12 +01:00
parent de476ad5ac
commit 91f2dcdfe1
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -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}))
{