1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-18 07:52:32 +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:
David Anderson 2007-02-10 04:52:18 +00:00
parent 0f2e0c9544
commit ed2ba5b8b0

View File

@ -263,7 +263,7 @@ public:
v[len] = 0;
}
String substr(unsigned int index, int num = npos)
String substr(unsigned int index, int num = npos) const
{
if (!v)
{
@ -322,7 +322,7 @@ public:
}
char operator [] (unsigned int index)
char operator [] (unsigned int index) const
{
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)
return -1;