summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-04-04 18:13:32 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-02 23:10:55 +0000
commitd775b1fcb3fc7bd41af37f5d0a4d999320b62364 (patch)
treeb4fe9a26c57520c87d2082abe0883d0ff21938da /tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp
parent78a7e54f8f5c4ca6ce1ee6b0ac82c42b21738ac5 (diff)
Remove handling of missing Q_COMPILER_INITIALIZER_LISTS
Change-Id: Id65b39c787235a051262544932e6717d076f1ea0 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp')
-rw-r--r--tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp b/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp
index 7df220acf9..4b085d387d 100644
--- a/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp
+++ b/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp
@@ -233,13 +233,11 @@ public:
{
}
-#ifdef Q_COMPILER_INITIALIZER_LISTS
VarLengthArray(std::initializer_list<T> args)
: QVarLengthArray<T>(args)
{
}
#endif
-#endif
};
class tst_ContainerApiSymmetry : public QObject
@@ -614,7 +612,6 @@ struct ContainerDuplicatedValuesStrategy<std::unordered_multiset<T...>> : Contai
template<typename ... T>
struct ContainerDuplicatedValuesStrategy<QSet<T...>> : ContainerRejectsDuplicateValues {};
-#if defined(Q_COMPILER_INITIALIZER_LISTS)
template<typename Container>
void non_associative_container_check_duplicates_impl(const std::initializer_list<DuplicateStrategyTestType> &reference, const Container &c, ContainerAcceptsDuplicateValues)
{
@@ -716,13 +713,6 @@ void tst_ContainerApiSymmetry::non_associative_container_duplicates_strategy() c
Container<DuplicateStrategyTestType> c2{reference.begin(), reference.end()};
non_associative_container_check_duplicates(reference, c2);
}
-#else
-template<template<class ... T> class Container>
-void tst_ContainerApiSymmetry::non_associative_container_duplicates_strategy() const
-{
- QSKIP("Test requires a better compiler");
-}
-#endif // Q_COMPILER_INITIALIZER_LISTS
template <typename Container>
void tst_ContainerApiSymmetry::ranged_ctor_associative_impl() const