mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
TraversalClient: Make use of std::string_view with ConnectToClient()
Same behavior, but allows the use of non-allocating string types with the interface.
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include <enet/enet.h>
|
||||
|
||||
@ -51,7 +52,7 @@ public:
|
||||
bool IsConnected() const { return m_State == State::Connected; }
|
||||
|
||||
void Reset();
|
||||
void ConnectToClient(const std::string& host);
|
||||
void ConnectToClient(std::string_view host);
|
||||
void ReconnectToServer();
|
||||
void Update();
|
||||
void HandleResends();
|
||||
|
Reference in New Issue
Block a user