mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-19 08:52:34 +01:00
added some const specifiers to string
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40334
This commit is contained in:
parent
0f2e0c9544
commit
ed2ba5b8b0
@ -263,7 +263,7 @@ public:
|
|||||||
v[len] = 0;
|
v[len] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
String substr(unsigned int index, int num = npos)
|
String substr(unsigned int index, int num = npos) const
|
||||||
{
|
{
|
||||||
if (!v)
|
if (!v)
|
||||||
{
|
{
|
||||||
@ -322,7 +322,7 @@ public:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char operator [] (unsigned int index)
|
char operator [] (unsigned int index) const
|
||||||
{
|
{
|
||||||
if (index > size() || !v)
|
if (index > size() || !v)
|
||||||
{
|
{
|
||||||
@ -332,7 +332,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int at(int a)
|
int at(int a) const
|
||||||
{
|
{
|
||||||
if (a < 0 || a >= (int)size() || !v)
|
if (a < 0 || a >= (int)size() || !v)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user