mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1212745 - Part 1 - operator() Use perfect forwarding to avoid redundant copy. r=nfroyd
This commit is contained in:
parent
6ed090b633
commit
5e032ffed0
@ -155,10 +155,11 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
ReturnType operator()(Arguments... aArguments) const
|
||||
template<typename... Args>
|
||||
ReturnType operator()(Args&&... aArguments) const
|
||||
{
|
||||
MOZ_ASSERT(mImpl);
|
||||
return mImpl->call(Forward<Arguments>(aArguments)...);
|
||||
return mImpl->call(Forward<Args>(aArguments)...);
|
||||
}
|
||||
private:
|
||||
// TODO: Consider implementing a small object optimization.
|
||||
|
Loading…
Reference in New Issue
Block a user