Skip to content

Commit 5667ea2

Browse files
nilsdingmgallien
authored andcommitted
style(pushnotifications): use more descriptive variable names
`.isDouble` becomes more clear if one can immediately tell this is operating on a JSON type Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
1 parent fe8b986 commit 5667ea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsync/pushnotifications.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ void PushNotifications::handleNotifyFileId(const QString &message)
225225
}
226226

227227
if (const auto jsonArray = jsonDoc.array(); jsonDoc.isArray()) {
228-
for (const auto& fileid : jsonArray) {
229-
if (const auto fid = fileid.toInteger(); fileid.isDouble()) {
230-
fileIds.push_back(fid);
228+
for (const auto& jsonFileid : jsonArray) {
229+
if (const auto fileid = jsonFileid.toInteger(); jsonFileid.isDouble()) {
230+
fileIds.push_back(fileid);
231231
}
232232
}
233233
}

0 commit comments

Comments
 (0)