diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-29 21:01:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-29 21:01:47 +0200 |
commit | 53b76e66f5527a5f9442173279b0a01f1f07da46 (patch) | |
tree | 0e64c375ab0d51b9d1fdce751fd949aa8e6d6cf7 /examples | |
parent | eb46f7aad108c2dd5289471ed5801260e18770df (diff) | |
download | sink-53b76e66f5527a5f9442173279b0a01f1f07da46.tar.gz sink-53b76e66f5527a5f9442173279b0a01f1f07da46.zip |
Avoid build errors
Diffstat (limited to 'examples')
-rw-r--r-- | examples/carddavresource/tests/carddavtest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/carddavresource/tests/carddavtest.cpp b/examples/carddavresource/tests/carddavtest.cpp index 4fb6bad..6e7cf01 100644 --- a/examples/carddavresource/tests/carddavtest.cpp +++ b/examples/carddavresource/tests/carddavtest.cpp | |||
@@ -48,8 +48,8 @@ class CardDavTest : public QObject | |||
48 | job->exec(); | 48 | job->exec(); |
49 | 49 | ||
50 | const auto collectionUrl = [&] { | 50 | const auto collectionUrl = [&] { |
51 | for(const auto collection : job->collections()) { | 51 | if (!job->collections().isEmpty()) { |
52 | return collection.url().url(); | 52 | return job->collections().first().url().url(); |
53 | } | 53 | } |
54 | return QUrl{}; | 54 | return QUrl{}; |
55 | }(); | 55 | }(); |