Split statements that should go onto multiple lines

This commit is contained in:
Benny Baumann
2021-07-14 19:11:18 +02:00
committed by BenBE
parent 3bc73aa088
commit e7f8d7bcc9
13 changed files with 36 additions and 14 deletions

View File

@ -117,7 +117,8 @@ static void AvailableMetersPanel_addDynamicMeter(ATTR_UNUSED ht_key_t key, void*
DynamicIterator* iter = (DynamicIterator*)data;
unsigned int identifier = (iter->offset << 16) | iter->id;
const char* label = meter->description ? meter->description : meter->caption;
if (!label) label = meter->name; /* last fallback to name, guaranteed set */
if (!label)
label = meter->name; /* last fallback to name, guaranteed set */
Panel_add(iter->super, (Object*) ListItem_new(label, identifier));
iter->id++;
}