Commit 1756d7c3 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Make fake qAsConst more generic

parent aac46537
Pipeline #982 passed with stage
in 9 seconds
......@@ -77,8 +77,8 @@
QML_CONSTANT_PROPERTY_IMPL(NAME, TYPE *, TYPE *, TYPE *)
#if QT_VERSION < 0x050700
template<typename T> const QList<T *> & qAsConst (const QList<T *> & list) {
return list;
template<typename T> const T & qAsConst (const T & arg) {
return arg;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment