From 6ebd6b084230d8dd91b8afbfcd4486e93842d6ed Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 12 Apr 2017 19:36:36 +0200 Subject: [PATCH] warzone2100: fix FTBFS --- srcpkgs/warzone2100/patches/fix-FTBFS.patch | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/warzone2100/patches/fix-FTBFS.patch diff --git a/srcpkgs/warzone2100/patches/fix-FTBFS.patch b/srcpkgs/warzone2100/patches/fix-FTBFS.patch new file mode 100644 index 00000000000..dac0334e96f --- /dev/null +++ b/srcpkgs/warzone2100/patches/fix-FTBFS.patch @@ -0,0 +1,23 @@ +editbox.cpp:127:9: error: ambiguous overload for 'operator==' (operand types are 'QChar' and 'char') + if (ch == '\0') + +--- lib/widget/editbox.cpp.orig ++++ lib/widget/editbox.cpp +@@ -124,7 +124,7 @@ void W_EDITBOX::initialise() + /* Insert a character into a text buffer */ + void W_EDITBOX::insertChar(QChar ch) + { +- if (ch == '\0') ++ if (ch == QChar('\0')) + { + return; + } +@@ -150,7 +150,7 @@ void W_EDITBOX::insertChar(QChar ch) + /* Put a character into a text buffer overwriting any text under the cursor */ + void W_EDITBOX::overwriteChar(QChar ch) + { +- if (ch == '\0') ++ if (ch == QChar('\0')) + { + return; + }