forked from qt-creator/qt-creator
FakeVim: Fix use of implicit QChar(int) constructor
Change-Id: I79a778a1e32dae8b2c1f7d49d4c4e655cf51b1fb Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -8719,8 +8719,7 @@ void FakeVimHandler::disconnectFromEditor()
|
|||||||
|
|
||||||
void FakeVimHandler::updateGlobalMarksFilenames(const QString &oldFileName, const QString &newFileName)
|
void FakeVimHandler::updateGlobalMarksFilenames(const QString &oldFileName, const QString &newFileName)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < Private::g.marks.size(); ++i) {
|
for (Mark &mark : Private::g.marks) {
|
||||||
Mark &mark = Private::g.marks[i];
|
|
||||||
if (mark.fileName() == oldFileName)
|
if (mark.fileName() == oldFileName)
|
||||||
mark.setFileName(newFileName);
|
mark.setFileName(newFileName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user