aboutsummaryrefslogtreecommitdiff
path: root/src/staticstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/staticstring.cpp')
-rw-r--r--src/staticstring.cpp8
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
64int StaticString::setLength( int nNewLength ) 64void 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
156char StaticString::getAt( int nIndex ) 156char 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
164void StaticString::setAt( int nIndex, char cVal ) 164void 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
172char &StaticString::operator[]( int nIndex ) 172char &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];