summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-01-27 17:23:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-27 18:32:45 +0100
commit44e25bdf008742570619877e82ba603b3520b08f (patch)
tree56af4ba169bc206a5aad505c040a5e7e6143f249 /tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp
parente5c8a206c0807381bebd928e31beb258b14bc65f (diff)
Get rid of tr1/functional
This header requires rtti in libstdc++ on Mac, which we can't recommend since Qt itself is usually built without rtti. Replace its uses with simpler hand-made template functors. Change-Id: Ic020dcceaf262f77d92b31a8318a513fa200428d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp')
-rw-r--r--tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp b/tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp
index 99ad21152..b38a7fdfe 100644
--- a/tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp
+++ b/tests/auto/widgets/qwebengineframe/tst_qwebengineframe.cpp
@@ -406,8 +406,8 @@ void tst_QWebEngineFrame::asyncAndDelete()
QWebEnginePage *page = new QWebEnginePage;
CallbackSpy<QString> plainTextSpy;
CallbackSpy<QString> htmlSpy;
- page->toPlainText(ref(plainTextSpy));
- page->toHtml(ref(htmlSpy));
+ page->toPlainText(plainTextSpy.ref());
+ page->toHtml(htmlSpy.ref());
delete page;
// Pending callbacks should be called with an empty value in the page's destructor.