Use QSet<QString> instead of QStringList

This commit is contained in:
Loren Burkholder 2023-03-01 18:01:02 -05:00
parent ec8820ac64
commit 9616ee51b3

View file

@ -253,7 +253,7 @@ InputBar::updateTextContentProperties(const QString &t)
// check for invalid commands
auto commandName = getCommandAndArgs().first;
static const QStringList validCommands{QStringLiteral("me"),
static const QSet<QString> validCommands{QStringLiteral("me"),
QStringLiteral("react"),
QStringLiteral("join"),
QStringLiteral("knock"),