Commit 2b044416 authored by Volker Krause's avatar Volker Krause
Browse files

Port away from QStringRef

parent 52438ef5
......@@ -77,7 +77,7 @@ private Q_SLOTS:
rec = createChangeRecorder();
} else if (action.at(0) == QLatin1Char('c')) {
// c1 = "trigger change on item 1"
const int id = action.midRef(1).toInt();
const int id = QStringView(action).mid(1).toInt();
Q_ASSERT(id);
triggerChange(id);
if (action != lastAction) {
......@@ -86,13 +86,13 @@ private Q_SLOTS:
}
} else if (action.at(0) == QLatin1Char('d')) {
// d1 = "delete item 1"
const int id = action.midRef(1).toInt();
const int id = QStringView(action).mid(1).toInt();
Q_ASSERT(id);
triggerDelete(id);
QTest::qWait(500);
} else if (action.at(0) == QLatin1Char('r')) {
// r1 = "replayNext and expect to get itemChanged(1)"
const int id = action.midRef(1).toInt();
const int id = QStringView(action).mid(1).toInt();
Q_ASSERT(id);
replayNextAndProcess(rec.get(), id);
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment