Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2017-01-25 13:12:38 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2017-01-26 01:26:23 +0300
commit1fc5a76622c7e1811c296c9550884cf124f3e864 (patch)
treefed4f3d29a6546c53f6005b36c62ca31f83632a3 /test/syncenginetestutils.h
parenta764d7eb86b40315931e3a0c9fac20ef7a83c09c (diff)
Pass the SyncFileItem as SyncFileItemPtr in itemCompleted
This will allow us to keep a reference on the items in connected slots.
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r--test/syncenginetestutils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h
index 76b74c15e..8fbe3d56d 100644
--- a/test/syncenginetestutils.h
+++ b/test/syncenginetestutils.h
@@ -818,15 +818,15 @@ public:
}
void execUntilItemCompleted(const QString &relativePath) {
- QSignalSpy spy(_syncEngine.get(), SIGNAL(itemCompleted(const SyncFileItem &)));
+ QSignalSpy spy(_syncEngine.get(), SIGNAL(itemCompleted(const SyncFileItemPtr &)));
QElapsedTimer t;
t.start();
while (t.elapsed() < 5000) {
spy.clear();
QVERIFY(spy.wait());
for(const QList<QVariant> &args : spy) {
- auto item = args[0].value<OCC::SyncFileItem>();
- if (item.destination() == relativePath)
+ auto item = args[0].value<OCC::SyncFileItemPtr>();
+ if (item->destination() == relativePath)
return;
}
}