prefer standard find() over Find

This commit is contained in:
Glenn Maynard
2005-12-21 08:27:00 +00:00
parent 8f4496685e
commit 443e80551f
6 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -125,8 +125,8 @@ void NetworkSyncManager::PostStartUp(const CString& ServerIP)
CString sAddress;
short iPort;
int cLoc = ServerIP.Find( ":" );
if ( ServerIP.Find( ":" ) > 0 )
size_t cLoc = ServerIP.find( ':' );
if( ServerIP.find( ':' ) != CString::npos )
{
iPort = (short) atoi( ServerIP.substr( cLoc + 1 ).c_str() );
sAddress = ServerIP.substr( 0, cLoc );