diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-11-21 21:50:06 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-21 21:50:06 +0000 |
commit | 54c441564ab1052d4f778c1d43f3bd468917e3d1 (patch) | |
tree | 040b1872fea9531edccf8a43204e3f1cc08b1880 /src | |
parent | d43af5161421dc38eb7b38e49ec66608866b2cce (diff) | |
download | libbu++-54c441564ab1052d4f778c1d43f3bd468917e3d1.tar.gz libbu++-54c441564ab1052d4f778c1d43f3bd468917e3d1.tar.bz2 libbu++-54c441564ab1052d4f778c1d43f3bd468917e3d1.tar.xz libbu++-54c441564ab1052d4f778c1d43f3bd468917e3d1.zip |
The static string works again...sigh...
Diffstat (limited to 'src')
-rw-r--r-- | src/staticstring.cpp | 4 | ||||
-rw-r--r-- | src/staticstring.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/staticstring.cpp b/src/staticstring.cpp index 179ba6f..4d60b8d 100644 --- a/src/staticstring.cpp +++ b/src/staticstring.cpp | |||
@@ -239,7 +239,7 @@ bool StaticString::operator!=( StaticString &str ) | |||
239 | for(; *a == *b; a++, b++ ) if( *a == '\0' && *b == '\0' ) return false; | 239 | for(; *a == *b; a++, b++ ) if( *a == '\0' && *b == '\0' ) return false; |
240 | return true; | 240 | return true; |
241 | } | 241 | } |
242 | 242 | /* | |
243 | unsigned long int StaticString::getHashCode() | 243 | unsigned long int StaticString::getHashCode() |
244 | { | 244 | { |
245 | unsigned long int nPos = nLen; | 245 | unsigned long int nPos = nLen; |
@@ -267,4 +267,4 @@ bool StaticString::compareForHash( Hashable &other ) | |||
267 | 267 | ||
268 | return true; | 268 | return true; |
269 | } | 269 | } |
270 | 270 | */ | |
diff --git a/src/staticstring.h b/src/staticstring.h index c83f391..0d155c4 100644 --- a/src/staticstring.h +++ b/src/staticstring.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #include <string> | 4 | #include <string> |
5 | #include "serializable.h" | 5 | #include "serializable.h" |
6 | #include "hashable.h" | 6 | //#include "hashable.h" |
7 | 7 | ||
8 | /** | 8 | /** |
9 | * Simple string managing class. Allows for dynamically allocated string data | 9 | * Simple string managing class. Allows for dynamically allocated string data |
@@ -12,7 +12,7 @@ | |||
12 | * and making accessing meta-info like length fast and reliable as well. | 12 | * and making accessing meta-info like length fast and reliable as well. |
13 | *@author Mike Buland | 13 | *@author Mike Buland |
14 | */ | 14 | */ |
15 | class StaticString : public Serializable, public Hashable | 15 | class StaticString : public Serializable/*, public Hashable*/ |
16 | { | 16 | { |
17 | public: | 17 | public: |
18 | StaticString(); | 18 | StaticString(); |
@@ -50,8 +50,8 @@ public: | |||
50 | 50 | ||
51 | virtual void serialize( class Serializer &ar ); | 51 | virtual void serialize( class Serializer &ar ); |
52 | 52 | ||
53 | virtual unsigned long int getHashCode(); | 53 | //virtual unsigned long int getHashCode(); |
54 | virtual bool compareForHash( Hashable &other ); | 54 | //virtual bool compareForHash( Hashable &other ); |
55 | 55 | ||
56 | private: | 56 | private: |
57 | char *lpStr; | 57 | char *lpStr; |