[network/ruqola] src/widgets/room: const'ify variable
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit d9c51326f3b93af0903e8d492568138384971431 by Laurent Montel.
Committed on 16/07/2026 at 21:59.
Pushed by mlaurent into branch 'master'.
const'ify variable
M +1 -1 src/widgets/room/pendingattachmentwidget.cpp
https://invent.kde.org/network/ruqola/-/commit/d9c51326f3b93af0903e8d492568138384971431
diff --git a/src/widgets/room/pendingattachmentwidget.cpp b/src/widgets/room/pendingattachmentwidget.cpp
index 9188f7b9c6..a161c46d7c 100644
--- a/src/widgets/room/pendingattachmentwidget.cpp
+++ b/src/widgets/room/pendingattachmentwidget.cpp
@@ -41,7 +41,7 @@ void PendingAttachmentWidget::addAttachment(const QUrl &url)
void PendingAttachmentWidget::addAttachment(const AccountRoomSettings::PendingAttachmentInfo &info)
{
- QUrl url = info.fileUrl;
+ const QUrl url = info.fileUrl;
if (mMap.contains(url)) {
return;
}