diff options
Diffstat (limited to 'src/staticstring.cpp')
-rw-r--r-- | src/staticstring.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/staticstring.cpp b/src/staticstring.cpp index 0012b0f..179ba6f 100644 --- a/src/staticstring.cpp +++ b/src/staticstring.cpp | |||
@@ -61,7 +61,7 @@ int StaticString::getLength() | |||
61 | return nLen; | 61 | return nLen; |
62 | } | 62 | } |
63 | 63 | ||
64 | int StaticString::setLength( int nNewLength ) | 64 | void StaticString::setLength( int nNewLength ) |
65 | { | 65 | { |
66 | char *lpNewStr = new char[nNewLength+1]; | 66 | char *lpNewStr = new char[nNewLength+1]; |
67 | if( lpStr != NULL ) | 67 | if( lpStr != NULL ) |
@@ -153,7 +153,7 @@ StaticString::operator const char *() | |||
153 | return lpStr; | 153 | return lpStr; |
154 | } | 154 | } |
155 | 155 | ||
156 | char StaticString::getAt( int nIndex ) | 156 | char StaticString::getAt( unsigned int nIndex ) |
157 | { | 157 | { |
158 | if( nIndex < 0 || nIndex >= nLen ) | 158 | if( nIndex < 0 || nIndex >= nLen ) |
159 | return '\0'; | 159 | return '\0'; |
@@ -161,7 +161,7 @@ char StaticString::getAt( int nIndex ) | |||
161 | return lpStr[nIndex]; | 161 | return lpStr[nIndex]; |
162 | } | 162 | } |
163 | 163 | ||
164 | void StaticString::setAt( int nIndex, char cVal ) | 164 | void StaticString::setAt( unsigned int nIndex, char cVal ) |
165 | { | 165 | { |
166 | if( nIndex < 0 || nIndex >= nLen ) | 166 | if( nIndex < 0 || nIndex >= nLen ) |
167 | return; | 167 | return; |
@@ -169,7 +169,7 @@ void StaticString::setAt( int nIndex, char cVal ) | |||
169 | lpStr[nIndex] = cVal; | 169 | lpStr[nIndex] = cVal; |
170 | } | 170 | } |
171 | 171 | ||
172 | char &StaticString::operator[]( int nIndex ) | 172 | char &StaticString::operator[]( unsigned int nIndex ) |
173 | { | 173 | { |
174 | if( nIndex < 0 || nIndex >= nLen ) | 174 | if( nIndex < 0 || nIndex >= nLen ) |
175 | return lpStr[0]; | 175 | return lpStr[0]; |