From 97c2f49b27ad0d3cb492904f8cfe08c8860e1acc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:24:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../test/tst_KDStlContainerAdaptor.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp b/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp index 575a693..fe00ac2 100644 --- a/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp +++ b/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp @@ -71,9 +71,18 @@ void tst_KDStlContainerAdaptor::vectorAdaptorIterators() } // For Qt5 (without C++17) and Qt6/C++17 compatibility -template struct AddConst { typedef const T type; }; -template constexpr typename AddConst::type &asConst(T &t) noexcept { return t; } -template void asConst(const T &&) = delete; // prevent rvalue arguments +template +struct AddConst +{ + typedef const T type; +}; +template +constexpr typename AddConst::type &asConst(T &t) noexcept +{ + return t; +} +template +void asConst(const T &&) = delete; // prevent rvalue arguments void tst_KDStlContainerAdaptor::vectorAdaptorDataAccess() {