diff --git a/src/corelib/kernel/qmath.h b/src/corelib/kernel/qmath.h index 298bb630fb..18530714e0 100644 --- a/src/corelib/kernel/qmath.h +++ b/src/corelib/kernel/qmath.h @@ -143,7 +143,7 @@ struct QHypotType { using type = decltype(std::hypot(R(1), F(1))); }; template class QHypotHelper { - const T scale, total; + T scale, total; template friend class QHypotHelper; QHypotHelper(T first, T prior) : scale(first), total(prior) {} public: