From ed2ba5b8b09d2b7d53ee6a68422e381f4a883831 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 10 Feb 2007 04:52:18 +0000 Subject: [PATCH] added some const specifiers to string --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40334 --- sourcehook/sh_string.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sourcehook/sh_string.h b/sourcehook/sh_string.h index 54ef6e1..4a78e93 100755 --- a/sourcehook/sh_string.h +++ b/sourcehook/sh_string.h @@ -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;