Spacing, remove redundant public:

continuous
Isaac Connor 2021-03-31 12:40:02 -04:00
parent 4cfe777e93
commit c8e9c3dd83
1 changed files with 8 additions and 8 deletions

View File

@ -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;
}