mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
EbisuSDK: add const qualifiers
This commit is contained in:
parent
d0ec49cc52
commit
0ad88c6ae5
@ -119,9 +119,9 @@ bool IsOriginInitialized()
|
||||
// Input : *pszName -
|
||||
// Output : true on success, false on failure
|
||||
//-----------------------------------------------------------------------------
|
||||
bool IsValidPersonaName(const char* pszName, int nMinLen, int nMaxLen)
|
||||
bool IsValidPersonaName(const char* const pszName, const int nMinLen, const int nMaxLen)
|
||||
{
|
||||
size_t len = strlen(pszName);
|
||||
const size_t len = strlen(pszName);
|
||||
|
||||
if (len < nMinLen ||
|
||||
len > nMaxLen)
|
||||
@ -130,7 +130,7 @@ bool IsValidPersonaName(const char* pszName, int nMinLen, int nMaxLen)
|
||||
}
|
||||
|
||||
// Check if the name contains any special characters.
|
||||
size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
|
||||
const size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
|
||||
return pszName[pos] == '\0';
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ const char* HEbisuSDK_GetLanguage();
|
||||
bool IsOriginDisabled();
|
||||
bool IsOriginInitialized();
|
||||
|
||||
bool IsValidPersonaName(const char* pszName, int nMinLen, int nMaxLen);
|
||||
bool IsValidPersonaName(const char* const pszName, const int nMinLen, const int nMaxLen);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class VEbisuSDK : public IDetour
|
||||
|
Loading…
x
Reference in New Issue
Block a user