Minor update:
- FunctionCore: - Set Function Type in Init() - SelectableBare: - Remove unnecesary initialisation in constructor - SelectableCore: - Remove code duplicated in SelectableBare
This commit is contained in:
@@ -30,9 +30,8 @@ extern CApplication * Application;
|
||||
CFunctionCore::CFunctionCore( const char * pName, const char * pType ) : Type( pType )
|
||||
{
|
||||
// Set name
|
||||
if (pName) {
|
||||
if (pName)
|
||||
Name = strdup( pName );
|
||||
}
|
||||
|
||||
// Logging
|
||||
Log = Application->Log;
|
||||
@@ -101,6 +100,9 @@ bool CFunctionCore::Init( CDataMember * FunctionConfig )
|
||||
if (!FunctionConfig )
|
||||
return false;
|
||||
|
||||
// Set Type
|
||||
FunctionConfig->SetChStr( "Type", Type );
|
||||
|
||||
// Configure Logging/Debugging
|
||||
LogConfig = FunctionConfig->GetChild( "Log", true );
|
||||
pLogLevel = Log->ReadLogLevel( LogConfig );
|
||||
|
||||
Reference in New Issue
Block a user