This patch makes QtCurve build against Qt 5.9.0 (RC) by replacing the MOArrow() argument QFlags<State> state with State state. The former is *presumably* a redundant and (now) incorrect equivalent of the latter as I have not been able to observe any runtime differences with the original code built against Qt 5.8.0 .
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
From what I can see the former was simply always wrong. It was previously QFlags<QFlags<StateFlag>>
It just happens that it had no side effects; as an enum mostly behaves like an int, and QFlags<> mostly behaves like an int, so it didn't really matter.
Comment Actions
That's what I thought too, QFlags allows to make the compiler more pedantic but (usually) doesn't change runtime behaviour of compiled code.
https://commits.kde.org/qtcurve/7ddd3782ea5635cc0d6a6d292824da85ae9d1bb8