From a5428e53525afbc6fe6f697edb4f742d84c9ae0c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 23 Mar 2018 14:47:52 +0900 Subject: Room::downloadFile(): Events are const --- room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3