QtTest: compile in C++17 mode: no more std::unary_function
Change-Id: I5d0ee9389a794d80983efffd152cbce4da448ddf Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
410b943516
commit
2c93ff91be
@ -138,7 +138,7 @@ QTestData *QTestTable::testData(int index) const
|
|||||||
return size_t(index) < d->dataList.size() ? d->dataList[index] : nullptr;
|
return size_t(index) < d->dataList.size() ? d->dataList[index] : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
class NamePredicate : public std::unary_function<QTestTablePrivate::Element, bool>
|
class NamePredicate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit NamePredicate(const char *needle) : m_needle(needle) {}
|
explicit NamePredicate(const char *needle) : m_needle(needle) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user