aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-17 20:17:06 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-17 20:17:06 +0900
commitbbb207277a1f8ca1deb69116f20523fcedf05c64 (patch)
tree1aec90c08d50355343fc17f68b0e026e4c6f7558 /room.cpp
parent936feeedaeda390004d9026ce23324becbcd2c93 (diff)
downloadlibquotient-bbb207277a1f8ca1deb69116f20523fcedf05c64.tar.gz
libquotient-bbb207277a1f8ca1deb69116f20523fcedf05c64.zip
Fix a mistake reported by Clang static analyzer
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 6b7484e9..3481f684 100644
--- a/room.cpp
+++ b/room.cpp
@@ -110,13 +110,13 @@ class Room::Private
void update(qint64 p, qint64 t)
{
- progress = p; total = t;
if (t == 0)
{
t = -1;
if (p == 0)
p = -1;
}
+ progress = p; total = t;
}
};
void failedTransfer(const QString& tid, const QString& errorMessage = {})