aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)