Spacing, remove redundant public:
parent
4cfe777e93
commit
c8e9c3dd83
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue