Closed Kaffeine closed 5 years ago
We need to adjust generator (qt-types-gen.py:302, qt-types-gen.py:563) to add std::initializer_list<T> args, where T is array_of.
std::initializer_list<T> args
array_of
Expected diff in generated files:
struct TP_QT_EXPORT UIntList : public QList<uint> { UIntList() : QList<uint>() {} UIntList(const QList<uint>& a) : QList<uint>(a) {} + UIntList(std::initializer_list<uint> args) : QList<uint>(args) { } UIntList& operator=(const QList<uint>& a) { *(static_cast<QList<uint>*>(this)) = a; return *this; } };
+1, feel free to do it. It can't break anything, I believe.
https://github.com/TelepathyIM/telepathy-qt/commit/c5fad064883a53800159aec845815f91b3ea8459
We need to adjust generator (qt-types-gen.py:302, qt-types-gen.py:563) to add
std::initializer_list<T> args
, where T isarray_of
.Expected diff in generated files: