Refactoring.

Code style.
This commit is contained in:
Roman Telezhynskyi 2023-10-04 16:58:56 +03:00
parent ecf93f8d31
commit 5f60af68ca

View File

@ -34,16 +34,16 @@ constexpr qreal PrintDPI = 96.0;
#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
// this adds const to non-const objects (like std::as_const)
template <typename T>
Q_DECL_CONSTEXPR typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
template <typename T> Q_DECL_CONSTEXPR typename std::add_const<T>::type &qAsConst(T &t) noexcept
{
return t;
}
// prevent rvalue arguments:
template <typename T>
void qAsConst(const T &&) Q_DECL_EQ_DELETE;
template <typename T> void qAsConst(const T &&) Q_DECL_EQ_DELETE;
#endif
#ifndef Q_DISABLE_ASSIGN
#define Q_DISABLE_ASSIGN(Class) \
Class &operator=(const Class &) = delete;
#define Q_DISABLE_ASSIGN(Class) Class &operator=(const Class &) = delete;
#endif
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)