cppcheck improvements. Remove non-const StartTime and EndTime. We will remove the dirty hack use in zm_monitor.

This commit is contained in:
Isaac Connor 2020-11-01 17:14:44 -05:00
parent f79602d638
commit 82c3436155
1 changed files with 2 additions and 4 deletions

View File

@ -119,17 +119,15 @@ class Event {
const struct timeval &StartTime() const { return start_time; } const struct timeval &StartTime() const { return start_time; }
const struct timeval &EndTime() const { return end_time; } const struct timeval &EndTime() const { return end_time; }
struct timeval &StartTime() const { return start_time; }
struct timeval &EndTime() const { return end_time; }
bool SendFrameImage( const Image *image, bool alarm_frame=false ); bool SendFrameImage( const Image *image, bool alarm_frame=false );
bool WriteFrameImage( Image *image, struct timeval timestamp, const char *event_file, bool alarm_frame=false ); bool WriteFrameImage( Image *image, struct timeval timestamp, const char *event_file, bool alarm_frame=false ) const;
bool WriteFrameVideo( const Image *image, const struct timeval timestamp, VideoWriter* videow ); bool WriteFrameVideo( const Image *image, const struct timeval timestamp, VideoWriter* videow );
void updateNotes( const StringSetMap &stringSetMap ); void updateNotes( const StringSetMap &stringSetMap );
void AddFrames( int n_frames, Image **images, struct timeval **timestamps ); void AddFrames( int n_frames, Image **images, struct timeval **timestamps );
void AddFrame( Image *image, struct timeval timestamp, int score=0, Image *alarm_frame=nullptr ); void AddFrame( Image *image, struct timeval timestamp, int score=0, Image *alarm_image=nullptr );
private: private:
void AddFramesInternal( int n_frames, int start_frame, Image **images, struct timeval **timestamps ); void AddFramesInternal( int n_frames, int start_frame, Image **images, struct timeval **timestamps );