mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Replaced size() check with empty().
This commit is contained in:
parent
acd03a3280
commit
88477829ef
|
@ -487,7 +487,7 @@ void Split::showViewerList()
|
||||||
for (int i = 0; i < jsonLabels.size(); i++) {
|
for (int i = 0; i < jsonLabels.size(); i++) {
|
||||||
auto currentCategory = chattersObj.value(jsonLabels.at(i)).toArray();
|
auto currentCategory = chattersObj.value(jsonLabels.at(i)).toArray();
|
||||||
// If current category of chatters is empty, dont show this category.
|
// If current category of chatters is empty, dont show this category.
|
||||||
if (currentCategory.size() == 0) continue;
|
if (currentCategory.empty()) continue;
|
||||||
|
|
||||||
chattersList->addItem(labelList.at(i));
|
chattersList->addItem(labelList.at(i));
|
||||||
foreach (const QJsonValue &v, currentCategory)
|
foreach (const QJsonValue &v, currentCategory)
|
||||||
|
|
Loading…
Reference in a new issue