From 5cd760cee9be10a089c60a97040c278ee228aa01 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 17 May 2024 16:34:45 +0200 Subject: [PATCH] you cannot call non const method on a temp const QString Signed-off-by: Matthieu Gallien --- src/libsync/syncfileitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsync/syncfileitem.cpp b/src/libsync/syncfileitem.cpp index a7fd1c7d5..7ac7ca153 100644 --- a/src/libsync/syncfileitem.cpp +++ b/src/libsync/syncfileitem.cpp @@ -219,7 +219,8 @@ SyncFileItemPtr SyncFileItem::fromProperties(const QString &filePath, const QMap const auto intConvertedValue = properties.value(QStringLiteral("lock-timeout")).toULongLong(&ok); item->_lockTimeout = ok ? intConvertedValue : 0; } - const auto lastModifiedValue = properties.value(QStringLiteral("getlastmodified")).replace("GMT", "+0000"); + auto getlastmodified = properties.value(QStringLiteral("getlastmodified")); + const auto lastModifiedValue = getlastmodified.replace(QStringLiteral("GMT"), QStringLiteral("+0000")); const auto date = QDateTime::fromString(lastModifiedValue, Qt::RFC2822Date); Q_ASSERT(date.isValid()); if (date.toSecsSinceEpoch() > 0) { -- 2.30.2