Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-08-05 18:54:32 +02:00
parent a8c9328986
commit 1ce824c4f5
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() );
}
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();
while( it != begin() )
{
--it;
--i;
if( *it == _c )
return( i );
return i ;
}
return( npos );
return npos;
}
void CStringEx::format( const char* s, ... )

View file

@ -65,7 +65,7 @@ public:
void purge();
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) );}