cleanup (prefer size() over GetLength)

This commit is contained in:
Glenn Maynard
2005-12-21 07:50:14 +00:00
parent 5e2806c5f7
commit 39b07e55b3
11 changed files with 25 additions and 21 deletions
@@ -158,7 +158,8 @@ bool RegistryAccess::SetRegValue( const RString &sKey, const RString &sName, con
bool bSuccess = true;
TCHAR sz[255];
if (sVal.GetLength() > 254) return FALSE;
if( sVal.size() > 254 )
return false;
strcpy( sz, sVal.c_str() );