diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/BString.h | 5 | ||||
-rw-r--r-- | include/Exceptions.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/BString.h b/include/BString.h index 4bd1436..df295f6 100644 --- a/include/BString.h +++ b/include/BString.h @@ -78,8 +78,8 @@ class String : public Base { bool operator>=(const String &) const; bool operator<(const String &) const; bool operator>(const String &) const; - char operator[](size_t i) const; - char & operator[](size_t i); + const char & operator[](size_t i) const; + char & operator[](size_t i) throw (GeneralException); operator ugly_string() const; String & toupper(); String & tolower(); @@ -89,7 +89,6 @@ class String : public Base { private: String(int hs, char *); - static char t[]; char * str; size_t siz; }; diff --git a/include/Exceptions.h b/include/Exceptions.h index 52f51c4..ac46e28 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -98,7 +98,6 @@ class GeneralException : public Base { protected: GeneralException(); char * msg; - static char t[BUFSIZ]; }; char * xstrdup(const char *); |