From c52e057ae49afb1ec252beab91c08366d08ae335 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gordan=20Marku=C5=A1?= <gordan.markus@pelagicore.com>
Date: Wed, 14 Dec 2016 22:05:48 +0100
Subject: [PATCH] tcime: Fix build warning

WARNING: Don't compare ints to QChars

Change-Id: I00ff7178706ac419dfce8d26088af048f0bd7d14
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
---
 src/virtualkeyboard/tcinputmethod.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virtualkeyboard/tcinputmethod.cpp b/src/virtualkeyboard/tcinputmethod.cpp
index 8a7a415a..6628ef7c 100644
--- a/src/virtualkeyboard/tcinputmethod.cpp
+++ b/src/virtualkeyboard/tcinputmethod.cpp
@@ -238,7 +238,7 @@ public:
             // Compose back the text after the finals replacement.
             input.clear();
             for (int i = 0; i < decomposed.length(); ++i) {
-                if (decomposed[i] != 0)
+                if (!decomposed[i].isNull())
                     input.append(decomposed[i]);
             }
         } else {
-- 
GitLab