Skip to content

Commit

Permalink
Merge pull request #6765 from nextcloud/ci/fixCompilation-stable-3.13
Browse files Browse the repository at this point in the history
you cannot call non const method on a temp const QString
  • Loading branch information
mgallien authored May 21, 2024
2 parents 383bed3 + 5cd760c commit 1f3ca27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsync/syncfileitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f3ca27

Please sign in to comment.