grantlee-qt-5.13.patch 778 B

12345678910111213141516171819202122232425262728
  1. From 0cee029ee03ab4906c6d19b57458b5036852b0f8 Mon Sep 17 00:00:00 2001
  2. From: Michael Pyne <mpyne@kde.org>
  3. Date: Tue, 18 Dec 2018 17:47:21 -0500
  4. Subject: [PATCH] Fix build with Qt 5.13 / GCC 8.2.
  5. At this point Grantlee doesn't build for me because QList is an
  6. incomplete type. I think the compiler is right to complain, so I fix by
  7. including the appropriate header.
  8. Fixes issue #47.
  9. ---
  10. templates/lib/lexer_p.h | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/templates/lib/lexer_p.h b/templates/lib/lexer_p.h
  13. index 275aeea..1ae451a 100644
  14. --- a/templates/lib/lexer_p.h
  15. +++ b/templates/lib/lexer_p.h
  16. @@ -24,7 +24,7 @@
  17. #include "textprocessingmachine_p.h"
  18. #include "token.h"
  19. -template <typename T> class QList;
  20. +#include <QList>
  21. namespace Grantlee
  22. {