Skip to content
Snippets Groups Projects
Commit addf4a34 authored by vt4a2h's avatar vt4a2h
Browse files

Use QStringLiteral instead of raw strings in tests

parent 8a9c6cd2
No related branches found
No related tags found
No related merge requests found
......@@ -106,18 +106,18 @@ void TestQRange::benchmarks_data()
Runner oldF = [](const std::shared_ptr<QObject> &obj){
for (auto &&c : obj->findChildren<QObject*>()) {
c->setObjectName("foo");
c->setObjectName(QStringLiteral("foo"));
}
};
Runner newF = [](const std::shared_ptr<QObject> &obj){
for (auto &&c : obj.get() | qt::find_children(Qt::FindChildrenRecursively)) {
c->setObjectName("foo");
c->setObjectName(QStringLiteral("foo"));
}
};
Runner newCopyF = [](const std::shared_ptr<QObject> &obj) {
const std::vector<QObject*> d = obj.get() | qt::find_children(Qt::FindChildrenRecursively);
for (auto &&c : d) {
c->setObjectName("foo");
c->setObjectName(QStringLiteral("foo"));
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment