diff options
| author | 2022-01-24 10:58:22 -0500 | |
|---|---|---|
| committer | 2022-01-24 10:58:25 -0500 | |
| commit | b084a9bf0aeecee6e15c62cddf743ce07389a60f (patch) | |
| tree | 74bf120235a501273536364666e7504366200797 /src/input_common/drivers/udp_client.h | |
| parent | Merge pull request #7761 from v1993/patch-8 (diff) | |
| download | yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.gz yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.xz yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.zip | |
input_common/udp_client: Prevent unnecessary string copies
We can also remove some redundant const on the return values, since
these don't do anything
Diffstat (limited to 'src/input_common/drivers/udp_client.h')
| -rw-r--r-- | src/input_common/drivers/udp_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/udp_client.h b/src/input_common/drivers/udp_client.h index 61a1fff37..30d7c2682 100644 --- a/src/input_common/drivers/udp_client.h +++ b/src/input_common/drivers/udp_client.h | |||
| @@ -145,8 +145,8 @@ private: | |||
| 145 | void OnPortInfo(Response::PortInfo); | 145 | void OnPortInfo(Response::PortInfo); |
| 146 | void OnPadData(Response::PadData, std::size_t client); | 146 | void OnPadData(Response::PadData, std::size_t client); |
| 147 | void StartCommunication(std::size_t client, const std::string& host, u16 port); | 147 | void StartCommunication(std::size_t client, const std::string& host, u16 port); |
| 148 | const PadIdentifier GetPadIdentifier(std::size_t pad_index) const; | 148 | PadIdentifier GetPadIdentifier(std::size_t pad_index) const; |
| 149 | const Common::UUID GetHostUUID(const std::string host) const; | 149 | Common::UUID GetHostUUID(const std::string& host) const; |
| 150 | 150 | ||
| 151 | Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const; | 151 | Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const; |
| 152 | 152 | ||