mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1189231 - Refine operator() call with perfect forwarding. r=nfroyd
This commit is contained in:
parent
d4c8522d1e
commit
50aa18ff1e
@ -263,9 +263,10 @@ public:
|
||||
mFunction(aFunction)
|
||||
{
|
||||
}
|
||||
R operator()(Args... aArgs)
|
||||
template<typename... ActualArgs>
|
||||
R operator()(ActualArgs&&... aArgs)
|
||||
{
|
||||
return ((*mRawPtr).*mFunction)(mozilla::Forward<Args>(aArgs)...);
|
||||
return ((*mRawPtr).*mFunction)(mozilla::Forward<ActualArgs>(aArgs)...);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user