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>
This commit is contained in:
hjk
2016-05-02 11:37:49 +02:00
parent 87995d653a
commit 93a4170d2e

View File

@@ -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())