From aaed751bf4430bf4b9b30cef532b8753b9f639ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:48:31 +0500 Subject: Replace most of C strings with string_view --- game/server/whitelist.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/server/whitelist.hh') diff --git a/game/server/whitelist.hh b/game/server/whitelist.hh index 8f909b9..b84a34c 100644 --- a/game/server/whitelist.hh +++ b/game/server/whitelist.hh @@ -23,8 +23,8 @@ void shutdown(void); namespace whitelist { -bool contains(const char* username); -bool matches(const char* username, std::uint64_t password_hash); +bool contains(std::string_view username); +bool matches(std::string_view username, std::uint64_t password_hash); } // namespace whitelist #endif // SERVER_WHITELIST_HH -- cgit