aports/community/kasync/fix-qt-macro-usage.patch
psykose 013567b137
community/kasync: fix qt macro usage
otherwise compiling against the headers fails with:
/usr/include/KAsync/future.h:520:5: error: expected unqualified-id before 'const'
  520 |     Q_DISABLE_COPY(FutureWatcher<T>)
      |     ^~~~~~~~~~~~~~
/usr/include/KAsync/future.h:520:5: error: expected ')' before 'const'
  520 |     Q_DISABLE_COPY(FutureWatcher<T>)
      |     ^~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qshareddata.h:43,
                 from /usr/include/qt5/QtCore/QSharedDataPointer:1,
2022-04-14 13:21:53 +02:00

12 lines
179 B
Diff

--- a/src/future.h
+++ b/src/future.h
@@ -517,7 +517,7 @@
#endif
private:
- Q_DISABLE_COPY(FutureWatcher<T>)
+ Q_DISABLE_COPY(FutureWatcher)
};
} // namespace Async