From de476ad5acfef26d07a6bb98a0c7c2d9456a295f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 6 Dec 2023 16:45:22 +0100 Subject: [PATCH] MEX files: use a braced initializer list instead of repeating the return type Automatically detected by clang-tidy with modernize-return-braced-init-list check. --- mex/sources/libkorder/tl/gs_tensor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mex/sources/libkorder/tl/gs_tensor.cc b/mex/sources/libkorder/tl/gs_tensor.cc index 947d41d6ec..42f881d377 100644 --- a/mex/sources/libkorder/tl/gs_tensor.cc +++ b/mex/sources/libkorder/tl/gs_tensor.cc @@ -460,7 +460,7 @@ UGSTensor::getFirstIndexOf(const index& in) const vtmp.sort(); last += tdims.getSym()[i]; } - return index(*this, v); + return {*this, v}; } /* Here is perfectly same code with the same semantics as in -- GitLab