Minor updates:
- Rename function ApplicationCore::GetProcessName -> GetFileName - Correct misspelled variable "Persistent" in CSelectableCore::Init - Clear compiler warning: Persistent not initialised
This commit is contained in:
@@ -94,7 +94,7 @@ CApplication::~CApplication()
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void CApplication::GetProcessName( char ** ProcessName, char * pFilePath )
|
||||
void CApplication::GetFileName( char ** ProcessName, char * pFilePath )
|
||||
{
|
||||
char * TempStr;
|
||||
|
||||
@@ -116,7 +116,7 @@ bool CApplication::ReadParam( int argc, char *argv[] )
|
||||
// Read Parameters
|
||||
if ((argc != 2)) {
|
||||
// Get Process Name
|
||||
GetProcessName( &ProcessName, argv[0] );
|
||||
GetFileName( &ProcessName, argv[0] );
|
||||
|
||||
// Incorrect no of parameters, show correct usage
|
||||
printf( "%s: Incorrect number of parameters\n", ProcessName );
|
||||
@@ -125,7 +125,7 @@ bool CApplication::ReadParam( int argc, char *argv[] )
|
||||
}
|
||||
else {
|
||||
// Load parameters
|
||||
GetProcessName( &ProcessName, argv[1] );
|
||||
GetFileName( &ProcessName, argv[1] );
|
||||
ConfigFile = argv[1];
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user