mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-18 05:11:41 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
eb0c8b6d5d
commit
3ae2ce679a
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