From 8fbf5fda24392d2a2ee19d6f40699a5de29da662 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 21 Nov 2006 20:26:23 +0000 Subject: Everything in libbu++ now passes -Wall, this should have been done a long time ago. --- src/staticstring.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/staticstring.h') diff --git a/src/staticstring.h b/src/staticstring.h index 1ff3f63..c83f391 100644 --- a/src/staticstring.h +++ b/src/staticstring.h @@ -25,19 +25,19 @@ public: char *getString(); int getLength(); - int setLength( int nNewLength ); + void setLength( int nNewLength ); void setString( const char *lpNewStr, int nNewLen=-1 ); void setString( StaticString &sNewStr, int nNewLen=-1 ); - char getAt( int nIndex ); - void setAt( int nIndex, char cVal ); + char getAt( unsigned int nIndex ); + void setAt( unsigned int nIndex, char cVal ); class StaticString &operator=( class StaticString &lpOtherStr ); class StaticString &operator=( std::string &lpOtherStr ); class StaticString &operator=( const char *lpNewStr ); operator const char *(); - char &operator[]( int nIndex ); + char &operator[]( unsigned int nIndex ); operator int(); char *operator+( int nAmnt ); char *operator-( int nAmnt ); -- cgit v1.2.3