Style cleanups: don't overparenthesize, if( x ), not if ( x )
This commit is contained in:
@@ -415,16 +415,16 @@ CString ScreenPackages::StripOutContainers( const CString & In )
|
|||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char t = In.at(i);
|
char t = In.at(i);
|
||||||
while ( ( t == ' ' ) && ( i < In.length() ) )
|
while( t == ' ' && i < In.length() )
|
||||||
{
|
{
|
||||||
t = In.at(++i);
|
t = In.at(++i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( t == '\"' ) || ( t == '\'' ) )
|
if( t == '\"' || t == '\'' )
|
||||||
{
|
{
|
||||||
int j = i+1;
|
int j = i+1;
|
||||||
char u = In.at(j);
|
char u = In.at(j);
|
||||||
while ( ( u != t ) && ( j < In.length() ) )
|
while( u != t && j < In.length() )
|
||||||
{
|
{
|
||||||
u = In.at(++j);
|
u = In.at(++j);
|
||||||
}
|
}
|
||||||
@@ -512,7 +512,7 @@ void ScreenPackages::EnterURL( const CString & sURL )
|
|||||||
//XXX: This should be fixed by a prompt or something?
|
//XXX: This should be fixed by a prompt or something?
|
||||||
|
|
||||||
//if we are not talking about a file, let's not worry
|
//if we are not talking about a file, let's not worry
|
||||||
if ( ( m_sEndName != "" ) && m_bIsPackage )
|
if( m_sEndName != "" && m_bIsPackage )
|
||||||
{
|
{
|
||||||
CStringArray AddTo;
|
CStringArray AddTo;
|
||||||
GetDirListing( "Packages/"+m_sEndName, AddTo, false, false );
|
GetDirListing( "Packages/"+m_sEndName, AddTo, false, false );
|
||||||
|
|||||||
Reference in New Issue
Block a user