From 431d47701f26c1c2978ebc1cf70f4b1f8f4fef3b Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 26 Feb 2018 14:52:44 +0100 Subject: clang-format formats --- tests/teststore.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/teststore.cpp b/tests/teststore.cpp index 24067f4f..9d56dd33 100644 --- a/tests/teststore.cpp +++ b/tests/teststore.cpp @@ -160,14 +160,14 @@ QVariant TestStore::load(const QByteArray &type, const QVariantMap &filter) using namespace Sink::ApplicationDomain; const auto list = loadList(type, filter); if (!list.isEmpty()) { - if(list.size() > 1) { - qWarning() << "While loading" << type << "with filter" << filter << "; got multiple elements, but returning the first one."; + if (list.size() > 1) { + qWarning() << "While loading" << type << "with filter" << filter + << "; got multiple elements, but returning the first one."; } return list.first(); } return {}; } - template QVariantList toVariantList(const QList &list) { @@ -187,12 +187,12 @@ QVariantList TestStore::loadList(const QByteArray &type, const QVariantMap &filt query.resourceFilter(filter.value("resource").toByteArray()); } - for(QVariantMap::const_iterator it = filter.begin(); it != filter.end(); ++it) { - if(it.key() == "messageId") { + for (QVariantMap::const_iterator it = filter.begin(); it != filter.end(); ++it) { + if (it.key() == "messageId") { query.filter(it.value()); - } else if(it.key() == "draft") { + } else if (it.key() == "draft") { query.filter(it.value()); - } else if(it.key() == "subject") { + } else if (it.key() == "subject") { query.filter(it.value()); } } -- cgit v1.2.3