forked from qt-creator/qt-creator
VCS: Fix build with Qt6
QStringRef is gone. Task-number: QTCREATORBUG-24098 Change-Id: I38dd1602294fcabf5cf7c1553bcfd93f3c47b601 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ void GerritPushDialog::initRemoteBranches()
|
||||
continue;
|
||||
const QString ref = entries.at(0).mid(remotesPrefix.size());
|
||||
int refBranchIndex = ref.indexOf('/');
|
||||
qint64 timeT = entries.at(1).leftRef(entries.at(1).indexOf(' ')).toLongLong();
|
||||
qint64 timeT = entries.at(1).left(entries.at(1).indexOf(' ')).toLongLong();
|
||||
BranchDate bd(ref.mid(refBranchIndex + 1), QDateTime::fromSecsSinceEpoch(timeT).date());
|
||||
m_remoteBranches.insertMulti(ref.left(refBranchIndex), bd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user