COMP: Remove warnings
This commit is contained in:
parent
df12751543
commit
13f88b0a22
|
@ -704,7 +704,7 @@ void RegistryHelper::SetSubKey(const char* sk)
|
|||
//----------------------------------------------------------------------------
|
||||
char *RegistryHelper::Strip(char *str)
|
||||
{
|
||||
size_t cc;
|
||||
int cc;
|
||||
size_t len;
|
||||
char *nstr;
|
||||
if ( !str )
|
||||
|
@ -713,7 +713,7 @@ char *RegistryHelper::Strip(char *str)
|
|||
}
|
||||
len = strlen(str);
|
||||
nstr = str;
|
||||
for( cc=0; cc < len; cc++ )
|
||||
for( cc=0; cc < static_cast<int>(len); cc++ )
|
||||
{
|
||||
if ( !isspace( *nstr ) )
|
||||
{
|
||||
|
@ -721,7 +721,7 @@ char *RegistryHelper::Strip(char *str)
|
|||
}
|
||||
nstr ++;
|
||||
}
|
||||
for( cc= strlen(nstr)-1; cc>=0; cc-- )
|
||||
for( cc= static_cast<int>(strlen(nstr))-1; cc>=0; cc-- )
|
||||
{
|
||||
if ( !isspace( nstr[cc] ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue