Commit 3e9e76e8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile with unity

parent f86a3ea7
Pipeline #66169 passed with stage
in 39 minutes and 37 seconds
......@@ -18,7 +18,8 @@ template<typename Arg, typename R, typename C> struct InvokeWrapper {
}
};
template<typename Arg, typename R, typename C> InvokeWrapper<Arg, R, C> invoke(R *receiver, void (C::*memberFun)(Arg))
template<typename Arg, typename R, typename C>
InvokeWrapper<Arg, R, C> invokeWebEngineExportHtml(R *receiver, void (C::*memberFun)(Arg))
{
InvokeWrapper<Arg, R, C> wrapper = {receiver, memberFun};
return wrapper;
......@@ -40,7 +41,7 @@ void WebEngineExportHtmlPageJob::start()
deleteLater();
return;
}
mEngineView->page()->toHtml(invoke(this, &WebEngineExportHtmlPageJob::slotSaveHtmlToPage));
mEngineView->page()->toHtml(invokeWebEngineExportHtml(this, &WebEngineExportHtmlPageJob::slotSaveHtmlToPage));
}
void WebEngineExportHtmlPageJob::slotSaveHtmlToPage(const QString &text)
......
......@@ -12,7 +12,7 @@
using namespace WebEngineViewer;
template<typename Arg, typename R, typename C>
struct InvokeWrapper {
struct InvokeWrapperWebhittest {
R *receiver;
void (C::*memberFunction)(Arg);
void operator()(Arg result)
......@@ -23,9 +23,9 @@ struct InvokeWrapper {
template<typename Arg, typename R, typename C>
InvokeWrapper<Arg, R, C> invoke(R *receiver, void (C::*memberFunction)(Arg))
InvokeWrapperWebhittest<Arg, R, C> invoke(R *receiver, void (C::*memberFunction)(Arg))
{
InvokeWrapper<Arg, R, C> wrapper = {receiver, memberFunction};
InvokeWrapperWebhittest<Arg, R, C> wrapper = {receiver, memberFunction};
return wrapper;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment