Skip to content

Commit 36d5b04

Browse files
committed
Enable c++20
1 parent 678caa0 commit 36d5b04

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.18)
2-
set(CMAKE_CXX_STANDARD 17)
2+
set(CMAKE_CXX_STANDARD 20)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
44

55
include(VERSION.cmake)

src/common/syncjournaldb.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,11 @@ void SyncJournalDb::markVirtualFileForDownloadRecursively(const QByteArray &path
20552055
query.exec();
20562056
}
20572057

2058+
SyncJournalDb::PinStateInterface::PinStateInterface(SyncJournalDb *db)
2059+
: _db(db)
2060+
{
2061+
}
2062+
20582063
Optional<PinState> SyncJournalDb::PinStateInterface::rawForPath(const QByteArray &path)
20592064
{
20602065
QMutexLocker lock(&_db->_mutex);

src/common/syncjournaldb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ class OCSYNC_EXPORT SyncJournalDb : public QObject
286286
*/
287287
struct OCSYNC_EXPORT PinStateInterface
288288
{
289+
PinStateInterface(SyncJournalDb *db);
289290
PinStateInterface(const PinStateInterface &) = delete;
290291
PinStateInterface(PinStateInterface &&) = delete;
291292

0 commit comments

Comments
 (0)