mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DolphinQt: Replace usages of QLatin1Literal with QStringLiteral
This literal was deprecated in 5.14.0. Not to mention it wasn't documented as part of the API either: see the 5.14.0 changelog here: https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.14.0?h=v5.14.0 On Qt 6.0 this define is removed entirely. To stay forward compatible, we can make use of QStringLiteral instead.
This commit is contained in:
@ -40,9 +40,9 @@ QTableWidgetItem* GetSocketDomain(s32 host_fd)
|
||||
switch (sa.sa_family)
|
||||
{
|
||||
case 2:
|
||||
return new QTableWidgetItem(QLatin1Literal("AF_INET"));
|
||||
return new QTableWidgetItem(QStringLiteral("AF_INET"));
|
||||
case 23:
|
||||
return new QTableWidgetItem(QLatin1Literal("AF_INET6"));
|
||||
return new QTableWidgetItem(QStringLiteral("AF_INET6"));
|
||||
default:
|
||||
return new QTableWidgetItem(QString::number(sa.sa_family));
|
||||
}
|
||||
@ -63,9 +63,9 @@ QTableWidgetItem* GetSocketType(s32 host_fd)
|
||||
switch (so_type)
|
||||
{
|
||||
case 1:
|
||||
return new QTableWidgetItem(QLatin1Literal("SOCK_STREAM"));
|
||||
return new QTableWidgetItem(QStringLiteral("SOCK_STREAM"));
|
||||
case 2:
|
||||
return new QTableWidgetItem(QLatin1Literal("SOCK_DGRAM"));
|
||||
return new QTableWidgetItem(QStringLiteral("SOCK_DGRAM"));
|
||||
default:
|
||||
return new QTableWidgetItem(QString::number(so_type));
|
||||
}
|
||||
|
Reference in New Issue
Block a user