Pass wxSharedPtr argument of RegisterFactory() by const reference

Avoid extra copies from passing it by value.
This commit is contained in:
Vadim Zeitlin
2020-12-13 00:19:03 +01:00
parent e3382b6e93
commit 727b590814
3 changed files with 7 additions and 3 deletions

View File

@@ -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;
}