Fix compilation errors
This commit is contained in:
parent
53c8a3073f
commit
7906307580
|
@ -235,12 +235,12 @@ bool Detector::Detect(const Image &zmImage, Zone** zones, Event::StringSet &zone
|
|||
void Detector::_onCreateEvent(Zone** zones, Event* event)
|
||||
{
|
||||
for(std::vector<unsigned int>::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it)
|
||||
onCreateEvent(zones[*it], *it, Event* event);
|
||||
onCreateEvent(zones[*it], *it, event);
|
||||
}
|
||||
|
||||
|
||||
void Detector::_onCloseEvent(Zone** zones, Event* event)
|
||||
{
|
||||
for(std::vector<unsigned int>::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it)
|
||||
onCloseEvent(zones[*it], *it, Event* event);
|
||||
onCloseEvent(zones[*it], *it, event);
|
||||
}
|
||||
|
|
|
@ -3119,10 +3119,8 @@ bool Monitor::closeEvent()
|
|||
if ( function == RECORD || function == MOCORD )
|
||||
{
|
||||
gettimeofday( &(event->EndTime()), NULL );
|
||||
}
|
||||
else ( function == ANALYSIS && config.load_plugins )
|
||||
{
|
||||
ThePluginManager.getImageAnalyser().onCloseEvent( zones, event );
|
||||
if ( config.load_plugins )
|
||||
ThePluginManager.getImageAnalyser().onCloseEvent( zones, event );
|
||||
}
|
||||
delete event;
|
||||
event = 0;
|
||||
|
|
Loading…
Reference in New Issue