aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 13:17:27 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 16:14:34 +0900
commit9057fc02b06bdd3e38e9cf39e68287e02d58596b (patch)
tree306eeffeb2053ea20b71cf910fc0b39b484a8daf /connection.cpp
parent0be3571d7c96e3df7ec523217e02d58850c7fe73 (diff)
downloadlibquotient-9057fc02b06bdd3e38e9cf39e68287e02d58596b.tar.gz
libquotient-9057fc02b06bdd3e38e9cf39e68287e02d58596b.zip
Use constants instead of hardcoded strings
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/connection.cpp b/connection.cpp
index a57bd8b4..80685dd1 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -539,12 +539,12 @@ QHash<QString, QVector<Room*>> Connection::tagsToRooms() const
QStringList Connection::tagNames() const
{
- QStringList tags ({"m.favourite"});
+ QStringList tags ({FavouriteTag});
for (auto* r: d->roomMap)
for (const auto& tag: r->tagNames())
- if (tag != "m.lowpriority" && !tags.contains(tag))
+ if (tag != LowPriorityTag && !tags.contains(tag))
tags.push_back(tag);
- tags.push_back("m.lowpriority");
+ tags.push_back(LowPriorityTag);
return tags;
}