Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-08-05 18:54:32 +02:00
parent 5d494ea2fe
commit 7c71e0ce01
2 changed files with 5 additions and 5 deletions

View file

@ -312,18 +312,18 @@ bool CStringEx::operator < ( const CStringEx& s ) const
return( is != s.end() ); return( is != s.end() );
} }
int CStringEx::reverse_find( const char _c ) const std::string::size_type CStringEx::reverse_find( const char _c ) const
{ {
unsigned int i = length(); size_type i = length();
const_iterator it = end(); const_iterator it = end();
while( it != begin() ) while( it != begin() )
{ {
--it; --it;
--i; --i;
if( *it == _c ) if( *it == _c )
return( i ); return i ;
} }
return( npos ); return npos;
} }
void CStringEx::format( const char* s, ... ) void CStringEx::format( const char* s, ... )

View file

@ -65,7 +65,7 @@ public:
void purge(); void purge();
void format( const char*, ... ); void format( const char*, ... );
int reverse_find( const char _c ) const; std::string::size_type reverse_find( const char _c ) const;
void serial( NLMISC::IStream& s ) { s.serial( (std::string&)(*this) );} void serial( NLMISC::IStream& s ) { s.serial( (std::string&)(*this) );}