Avoid making copies of favicon string
This commit is contained in:
parent
1c2eb4a1c0
commit
5012b81578
@ -294,7 +294,7 @@ int cServer::GetNumPlayers(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
AString cServer::GetFaviconData(void)
|
const AString & cServer::GetFaviconData(void) const
|
||||||
{
|
{
|
||||||
return m_FaviconData;
|
return m_FaviconData;
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ public: // tolua_export
|
|||||||
/// Notifies the server that a player is being destroyed; the server uses this to adjust the number of players
|
/// Notifies the server that a player is being destroyed; the server uses this to adjust the number of players
|
||||||
void PlayerDestroying(const cPlayer * a_Player);
|
void PlayerDestroying(const cPlayer * a_Player);
|
||||||
|
|
||||||
AString GetFaviconData(void);
|
const AString & GetFaviconData(void) const;
|
||||||
|
|
||||||
CryptoPP::RSA::PrivateKey & GetPrivateKey(void) { return m_PrivateKey; }
|
CryptoPP::RSA::PrivateKey & GetPrivateKey(void) { return m_PrivateKey; }
|
||||||
CryptoPP::RSA::PublicKey & GetPublicKey (void) { return m_PublicKey; }
|
CryptoPP::RSA::PublicKey & GetPublicKey (void) { return m_PublicKey; }
|
||||||
|
Loading…
Reference in New Issue
Block a user