mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
5d494ea2fe
commit
7c71e0ce01
2 changed files with 5 additions and 5 deletions
|
@ -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, ... )
|
||||
|
|
|
@ -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) );}
|
||||
|
||||
|
|
Loading…
Reference in a new issue