mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
UICommon/NetPlayIndex: Use a std::string_view for EncryptID()/DecryptID()
These parameters only acted as views into the provided strings, so these can just be turned into non-owning string views.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
@ -29,8 +30,8 @@ struct NetPlaySession
|
||||
bool has_password;
|
||||
bool in_game;
|
||||
|
||||
bool EncryptID(const std::string& password);
|
||||
std::optional<std::string> DecryptID(const std::string& password) const;
|
||||
bool EncryptID(std::string_view password);
|
||||
std::optional<std::string> DecryptID(std::string_view password) const;
|
||||
};
|
||||
|
||||
class NetPlayIndex
|
||||
|
Reference in New Issue
Block a user