From 372e05b3699e0060e9cc889d9a3246d879bc7572 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 29 Apr 2006 09:34:08 +0000 Subject: [PATCH] these should be const (more latrE) --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40194 --- sourcehook/sh_string.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sourcehook/sh_string.h b/sourcehook/sh_string.h index 08bc6eb..83a6923 100755 --- a/sourcehook/sh_string.h +++ b/sourcehook/sh_string.h @@ -96,7 +96,7 @@ public: v[0] = '\0'; } - int compare (const char *d) + int compare (const char *d) const { if (!v) return strcmp("", d); @@ -105,7 +105,7 @@ public: } //Added this for amxx inclusion - bool empty() + bool empty() const { if (!v) return true; @@ -116,7 +116,7 @@ public: return false; } - size_t size() + size_t size() const { if (v) return strlen(v); @@ -124,7 +124,7 @@ public: return 0; } - int find(const char c, int index = 0) + int find(const char c, int index = 0) const { int len = static_cast(size()); if (len < 1) @@ -143,7 +143,7 @@ public: return npos; } - bool is_space(int c) + bool is_space(int c) const { if (c == '\f' || c == '\n' || c == '\t' || c == '\r' ||