1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

string fixups

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40307
This commit is contained in:
David Anderson 2006-10-05 06:11:53 +00:00
parent 141d1534bb
commit fadadd2d92

View File

@ -51,6 +51,16 @@ public:
assign(src.c_str());
}
bool operator ==(const String &other)
{
return (compare(other.c_str()) == 0);
}
bool operator ==(const char *other)
{
return (compare(other) == 0);
}
const char *c_str() { return v?v:""; }
const char *c_str() const { return v?v:""; }