Add some more make_unique calls
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
7525ce887f
commit
00d20b03ac
|
@ -1,6 +1,6 @@
|
||||||
Checks: '-*,
|
Checks: '-*,
|
||||||
cppcoreguidelines-init-variables,
|
cppcoreguidelines-init-variables,
|
||||||
modernize-make-shared,
|
modernize-make-*,
|
||||||
modernize-redundant-void-arg,
|
modernize-redundant-void-arg,
|
||||||
modernize-replace-*,
|
modernize-replace-*,
|
||||||
modernize-return-braced-init-list,
|
modernize-return-braced-init-list,
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: In theory we should use QVERIFY instead of Q_ASSERT for testing, but this
|
* 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->setCredentials(new FakeCredentials{_fakeQnam});
|
||||||
_account->setDavDisplayName("fakename");
|
_account->setDavDisplayName("fakename");
|
||||||
|
|
||||||
_journalDb.reset(new OCC::SyncJournalDb(localPath() + "._sync_test.db"));
|
_journalDb = std::make_unique<OCC::SyncJournalDb>(localPath() + "._sync_test.db");
|
||||||
_syncEngine.reset(new OCC::SyncEngine(_account, localPath(), "", _journalDb.get()));
|
_syncEngine = std::make_unique<OCC::SyncEngine>(_account, localPath(), "", _journalDb.get());
|
||||||
|
|
||||||
// A new folder will update the local file state database on first sync.
|
// 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
|
// To have a state matching what users will encounter, we have to a sync
|
||||||
|
|
Loading…
Reference in New Issue