summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebenginecallback_p.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-09-01 13:10:34 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-19 07:42:58 +0000
commit757004ecf484289f576870b4f251c3e7551294c5 (patch)
tree3f45d9230b87239d16ca7584c07b54b068c11697 /src/core/api/qwebenginecallback_p.h
parent71d6dc0c326523103dff867d7184e7bc7e49c71d (diff)
Reinstate cookie filter API
Expose API to block cookies for specific domains, or third party cookies in general. Task-number: QTBUG-62897 Change-Id: I7f0e3f346368a2ef2fbd77f3197ee2dea50d57ce Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/api/qwebenginecallback_p.h')
-rw-r--r--src/core/api/qwebenginecallback_p.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/api/qwebenginecallback_p.h b/src/core/api/qwebenginecallback_p.h
index fdaf84d21..24b4495df 100644
--- a/src/core/api/qwebenginecallback_p.h
+++ b/src/core/api/qwebenginecallback_p.h
@@ -114,9 +114,15 @@ public:
#undef DEFINE_INVOKE_FOR_TYPE
template <typename A>
- void invokeDirectly(const QWebEngineCallback<A> &callback, const A &argument)
+ void invokeDirectly(const QWebEngineCallback<typename std::remove_reference<A>::type &> &callback, A &argument)
{
- return callback.d.data()->operator()(std::forward<const A&>(argument));
+ return callback.d.data()->operator()(argument);
+ }
+
+ template <typename A>
+ void invokeDirectly(const QWebEngineCallback<typename std::remove_reference<A>::type> &callback, const A &argument)
+ {
+ return callback.d.data()->operator()(std::forward<const A &>(argument));
}
private: