--- deliantra/server/include/shstr.h 2006/09/03 00:18:41 1.5 +++ deliantra/server/include/shstr.h 2006/09/03 07:57:56 1.6 @@ -17,10 +17,10 @@ static void gc (); // garbage collect a few strings - // this is used for informational messages and the like I/O + // this is used for informational messages and the like const char *operator &() const { return s ? s : ""; } - const char &operator [](int i) { return s[i]; } + const char &operator [](int i) const { return s[i]; } operator const char *() const { return s; } int length () const @@ -33,7 +33,7 @@ { } - shstr (shstr &sh) + shstr (const shstr &sh) : s (sh.s) { if (s) ++refcnt ();