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:
@@ -42,27 +42,11 @@ CFunctionCore * NewSelectableCore( const char * Name ) {
|
||||
|
||||
CSelectableCore::CSelectableCore( const char * pName, const char * pType ) : CSelectableBare( pName, pType )
|
||||
{
|
||||
// Quick access
|
||||
Selector = Application->Selector;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
CSelectableCore::~CSelectableCore()
|
||||
{
|
||||
THandle * NextHandle = NULL;
|
||||
|
||||
// Destroy File Handles
|
||||
while (FirstHandle)
|
||||
{
|
||||
// Close handle if open
|
||||
if ((FirstHandle->State == csOpen) || (FirstHandle->State == csWaitingtoOpen)) {
|
||||
Close( FirstHandle, false );
|
||||
}
|
||||
|
||||
NextHandle = FirstHandle->Next;
|
||||
DestroyHandle( FirstHandle );
|
||||
FirstHandle = NextHandle;
|
||||
}
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user