From 00d20b03ac4681b1a20bcf95a2029c01186a2711 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 27 May 2020 20:00:11 +0200 Subject: [PATCH] Add some more make_unique calls Signed-off-by: Kevin Ottens --- .clang-tidy | 2 +- test/syncenginetestutils.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 5d611df00..311e66d9e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,6 +1,6 @@ Checks: '-*, cppcoreguidelines-init-variables, - modernize-make-shared, + modernize-make-*, modernize-redundant-void-arg, modernize-replace-*, modernize-return-braced-init-list, diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index 4a436569a..17889a1a7 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -17,6 +17,8 @@ #include #include #include +#include + /* * TODO: In theory we should use QVERIFY instead of Q_ASSERT for testing, but this @@ -895,8 +897,8 @@ public: _account->setCredentials(new FakeCredentials{_fakeQnam}); _account->setDavDisplayName("fakename"); - _journalDb.reset(new OCC::SyncJournalDb(localPath() + "._sync_test.db")); - _syncEngine.reset(new OCC::SyncEngine(_account, localPath(), "", _journalDb.get())); + _journalDb = std::make_unique(localPath() + "._sync_test.db"); + _syncEngine = std::make_unique(_account, localPath(), "", _journalDb.get()); // A new folder will update the local file state database on first sync. // To have a state matching what users will encounter, we have to a sync