Pass wxSharedPtr argument of RegisterFactory() by const reference
Avoid extra copies from passing it by value.
This commit is contained in:
@@ -431,7 +431,9 @@ wxWebSession* wxWebSession::New(const wxString& backend)
|
||||
}
|
||||
|
||||
// static
|
||||
void wxWebSession::RegisterFactory(const wxString& backend, wxSharedPtr<wxWebSessionFactory> factory)
|
||||
void
|
||||
wxWebSession::RegisterFactory(const wxString& backend,
|
||||
const wxSharedPtr<wxWebSessionFactory>& factory)
|
||||
{
|
||||
ms_factoryMap[backend] = factory;
|
||||
}
|
||||
|
Reference in New Issue
Block a user