cppcheck improvements. Add const and override where we can
parent
82c3436155
commit
80e54aee66
|
@ -133,7 +133,7 @@ class EventStream : public StreamBase {
|
||||||
void setStreamMode( StreamMode p_mode ) {
|
void setStreamMode( StreamMode p_mode ) {
|
||||||
mode = p_mode;
|
mode = p_mode;
|
||||||
}
|
}
|
||||||
void runStream();
|
void runStream() override;
|
||||||
Image *getImage();
|
Image *getImage();
|
||||||
private:
|
private:
|
||||||
bool send_file( const char *file_path );
|
bool send_file( const char *file_path );
|
||||||
|
|
|
@ -23,10 +23,10 @@ class FFmpeg_Input {
|
||||||
int Close();
|
int Close();
|
||||||
AVFrame *get_frame( int stream_id=-1 );
|
AVFrame *get_frame( int stream_id=-1 );
|
||||||
AVFrame *get_frame( int stream_id, double at );
|
AVFrame *get_frame( int stream_id, double at );
|
||||||
int get_video_stream_id() {
|
int get_video_stream_id() const {
|
||||||
return video_stream_id;
|
return video_stream_id;
|
||||||
}
|
}
|
||||||
int get_audio_stream_id() {
|
int get_audio_stream_id() const {
|
||||||
return audio_stream_id;
|
return audio_stream_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ class MonitorStream : public StreamBase {
|
||||||
bool setStreamStart(int monitor_id) {
|
bool setStreamStart(int monitor_id) {
|
||||||
return loadMonitor(monitor_id);
|
return loadMonitor(monitor_id);
|
||||||
}
|
}
|
||||||
void runStream();
|
void runStream() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ZM_MONITORSTREAM_H
|
#endif // ZM_MONITORSTREAM_H
|
||||||
|
|
Loading…
Reference in New Issue