aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-23 14:47:52 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-23 17:22:16 +0900
commita5428e53525afbc6fe6f697edb4f742d84c9ae0c (patch)
treea2bb2c6d4280cb31432a57fa32cb1c26e5e3b405
parent062840871f0d740d55cec0aadb8c18b95f7cef62 (diff)
downloadlibquotient-a5428e53525afbc6fe6f697edb4f742d84c9ae0c.tar.gz
libquotient-a5428e53525afbc6fe6f697edb4f742d84c9ae0c.zip
Room::downloadFile(): Events are const
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index b48a1fc4..6c8d762b 100644
--- a/room.cpp
+++ b/room.cpp
@@ -1105,7 +1105,7 @@ void Room::downloadFile(const QString& eventId, const QUrl& localFilename)
Q_ASSERT_X(localFilename.isEmpty() || localFilename.isLocalFile(),
__FUNCTION__, "localFilename should point at a local file");
- auto* event = d->getEventWithFile(eventId);
+ const auto* event = d->getEventWithFile(eventId);
if (!event)
{
qCCritical(MAIN)