summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Authenticator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-10-03 19:09:25 +0200
committerGitHub <noreply@github.com>2021-10-03 19:09:25 +0200
commit1d72306bae40c38a8a684cc412b0478fb0920d63 (patch)
tree82e26d2b9dba9e0c9c1a197281f41fa2a537fe6d /src/Protocol/Authenticator.h
parentWorld: change spawnpoint type to int (#5313) (diff)
downloadcuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.tar
cuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.tar.gz
cuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.tar.bz2
cuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.tar.lz
cuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.tar.xz
cuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.tar.zst
cuberite-1d72306bae40c38a8a684cc412b0478fb0920d63.zip
Diffstat (limited to 'src/Protocol/Authenticator.h')
-rw-r--r--src/Protocol/Authenticator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Authenticator.h b/src/Protocol/Authenticator.h
index 39a50ac47..66dcf20b4 100644
--- a/src/Protocol/Authenticator.h
+++ b/src/Protocol/Authenticator.h
@@ -41,7 +41,7 @@ public:
void ReadSettings(cSettingsRepositoryInterface & a_Settings);
/** Queues a request for authenticating a user. If the auth fails, the user will be kicked */
- void Authenticate(int a_ClientID, AString && a_Username, const AString & a_ServerHash);
+ void Authenticate(int a_ClientID, std::string_view a_Username, std::string_view a_ServerHash);
/** Starts the authenticator thread. The thread may be started and stopped repeatedly */
void Start(cSettingsRepositoryInterface & a_Settings);
@@ -58,7 +58,7 @@ private:
AString m_Name;
AString m_ServerID;
- cUser(int a_ClientID, const AString & a_Name, const AString & a_ServerID) :
+ cUser(int a_ClientID, const std::string_view a_Name, const std::string_view a_ServerID) :
m_ClientID(a_ClientID),
m_Name(a_Name),
m_ServerID(a_ServerID)