Commit 0bfc8ee8 authored by Martin Klapetek's avatar Martin Klapetek
Browse files

Use QByteArrayLiterals for compile-time known QByteArrays

parent 57543328
......@@ -75,9 +75,9 @@ QVariant HolidayRegionsDeclarativeModel::data(const QModelIndex &index, int role
QHash<int, QByteArray> HolidayRegionsDeclarativeModel::roleNames() const
{
QHash<int, QByteArray> roles;
roles.insert(HolidayRegionsDeclarativeModel::RegionRole, "region");
roles.insert(HolidayRegionsDeclarativeModel::NameRole, "name");
roles.insert(HolidayRegionsDeclarativeModel::DescriptionRole, "description");
roles.insert(HolidayRegionsDeclarativeModel::RegionRole, QByteArrayLiteral("region"));
roles.insert(HolidayRegionsDeclarativeModel::NameRole, QByteArrayLiteral("name"));
roles.insert(HolidayRegionsDeclarativeModel::DescriptionRole, QByteArrayLiteral("description"));
return roles;
}
Markdown is supported
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