From 790630758016d9d22dc9a0ec64d875cef706c44f Mon Sep 17 00:00:00 2001 From: Emmanuel Papin Date: Sat, 17 Jan 2015 19:04:20 +0100 Subject: [PATCH] Fix compilation errors --- src/zm_detector.cpp | 4 ++-- src/zm_monitor.cpp | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/zm_detector.cpp b/src/zm_detector.cpp index dc2ee81bc..05450a767 100644 --- a/src/zm_detector.cpp +++ b/src/zm_detector.cpp @@ -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::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::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it) - onCloseEvent(zones[*it], *it, Event* event); + onCloseEvent(zones[*it], *it, event); } diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 95a6b6acd..f849c21b7 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -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;