summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-05-02 11:37:49 +0200
committerhjk <hjk@theqtcompany.com>2016-05-02 11:28:39 +0000
commit93a4170d2e5e8ae8992fa7230a2b44b259756b4c (patch)
tree733e1a93102a114255413ca9d27fb0c77d665263 /src
parent87995d653aa328c19a11fd3387e02b42b5d194a3 (diff)
downloadqt-creator-93a4170d2e5e8ae8992fa7230a2b44b259756b4c.tar.gz
FakeVim: Squash warning on QChar::unicode() use
Adapt to deprecation warnings from Qt base. Change-Id: Ifb1e26dce1456bb72ef663bfe74a934ed1ee4e24 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/fakevim/fakevimplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp
index 795c0215e0..225d78180a 100644
--- a/src/plugins/fakevim/fakevimplugin.cpp
+++ b/src/plugins/fakevim/fakevimplugin.cpp
@@ -2156,7 +2156,7 @@ void FakeVimPluginPrivate::indentRegion(int beginBlock, int endBlock,
for (int i = beginBlock; i <= endBlock; ++i) {
lineLengths[i - beginBlock] = block.text().length();
- if (typedChar == 0 && block.text().simplified().isEmpty()) {
+ if (typedChar.unicode() == 0 && block.text().simplified().isEmpty()) {
// clear empty lines
QTextCursor cursor(block);
while (!cursor.atBlockEnd())