Merge pull request #1937 from ivaradi/xenial-compat

Qt 5.5 compatibility #ifdef
This commit is contained in:
Dominique Fuchs 2020-04-25 12:23:25 +02:00 committed by GitHub
commit ddee26084d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,6 +326,11 @@ void SyncEngine::deleteStaleErrorBlacklistEntries(const SyncFileItemVector &sync
_journal->deleteStaleErrorBlacklistEntries(blacklist_file_paths);
}
#if (QT_VERSION < 0x050600)
template <typename T>
constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#endif
void SyncEngine::conflictRecordMaintenance()
{
// Remove stale conflict entries from the database