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:
Thiago Macieira 2018-05-08 10:54:24 -07:00
parent 410b943516
commit 2c93ff91be

View File

@ -138,7 +138,7 @@ QTestData *QTestTable::testData(int index) const
return size_t(index) < d->dataList.size() ? d->dataList[index] : nullptr;
}
class NamePredicate : public std::unary_function<QTestTablePrivate::Element, bool>
class NamePredicate
{
public:
explicit NamePredicate(const char *needle) : m_needle(needle) {}