From c8e9c3dd838def00a2051a4aa14dfb5d317a6cfb Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 31 Mar 2021 12:40:02 -0400 Subject: [PATCH] Spacing, remove redundant public: --- src/zm_event.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/zm_event.h b/src/zm_event.h index 77199509c..65ed38e4e 100644 --- a/src/zm_event.h +++ b/src/zm_event.h @@ -135,20 +135,20 @@ class Event { void UpdateFramesDelta(double offset); public: - static const char *getSubPath( struct tm *time ) { + static const char *getSubPath(struct tm *time) { static char subpath[PATH_MAX] = ""; - snprintf( subpath, sizeof(subpath), "%02d/%02d/%02d/%02d/%02d/%02d", time->tm_year-100, time->tm_mon+1, time->tm_mday, time->tm_hour, time->tm_min, time->tm_sec ); - return( subpath ); + snprintf(subpath, sizeof(subpath), + "%02d/%02d/%02d/%02d/%02d/%02d", + time->tm_year-100, time->tm_mon+1, time->tm_mday, time->tm_hour, time->tm_min, time->tm_sec + ); + return subpath; } static const char *getSubPath( time_t *time ) { - return Event::getSubPath( localtime( time ) ); + return Event::getSubPath(localtime(time)); } - char* getEventFile(void) { - return video_file; - } + char* getEventFile(void) { return video_file; } - public: static int PreAlarmCount() { return pre_alarm_count; }