forked from qt-creator/qt-creator
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:
@@ -2156,7 +2156,7 @@ void FakeVimPluginPrivate::indentRegion(int beginBlock, int endBlock,
|
|||||||
|
|
||||||
for (int i = beginBlock; i <= endBlock; ++i) {
|
for (int i = beginBlock; i <= endBlock; ++i) {
|
||||||
lineLengths[i - beginBlock] = block.text().length();
|
lineLengths[i - beginBlock] = block.text().length();
|
||||||
if (typedChar == 0 && block.text().simplified().isEmpty()) {
|
if (typedChar.unicode() == 0 && block.text().simplified().isEmpty()) {
|
||||||
// clear empty lines
|
// clear empty lines
|
||||||
QTextCursor cursor(block);
|
QTextCursor cursor(block);
|
||||||
while (!cursor.atBlockEnd())
|
while (!cursor.atBlockEnd())
|
||||||
|
|||||||
Reference in New Issue
Block a user