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:
2023-07-07 11:01:56 +02:00
parent 7dfdfdb4ce
commit 851a911c6d
3 changed files with 18 additions and 18 deletions

View File

@@ -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;
}