Skip to content

Commit

Permalink
Merge pull request #211 from neheb/5
Browse files Browse the repository at this point in the history
clang-tidy: add missing override
  • Loading branch information
dirkvdb authored Sep 13, 2024
2 parents 81faae2 + 23fd552 commit 2f4605d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libffmpegthumbnailer/filmstripfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace ffmpegthumbnailer
class FilmStripFilter : public IFilter
{
public:
void process(VideoFrame& videoFrame);
void process(VideoFrame& videoFrame) override;
};

}
Expand Down
2 changes: 1 addition & 1 deletion libffmpegthumbnailer/ifilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace ffmpegthumbnailer
class IFilter
{
public:
virtual ~IFilter() {}
virtual ~IFilter() = default;
virtual void process(VideoFrame& frameData) = 0;
};

Expand Down
10 changes: 5 additions & 5 deletions libffmpegthumbnailer/jpegwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class JpegWriter : public ImageWriter
public:
JpegWriter(const std::string& outputFile);
JpegWriter(std::vector<uint8_t>& outputBuffer);
~JpegWriter();
void setText(const std::string& key, const std::string& value);
void writeFrame(uint8_t** rgbData, int width, int height, int quality);
~JpegWriter() override;

void setText(const std::string& key, const std::string& value) override;
void writeFrame(uint8_t** rgbData, int width, int height, int quality) override;

private:
void init();

Expand Down
6 changes: 3 additions & 3 deletions libffmpegthumbnailer/pngwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class PngWriter : public ImageWriter
public:
PngWriter(const std::string& outputFile);
PngWriter(std::vector<uint8_t>& outputBuffer);
~PngWriter();
~PngWriter() override;

void setText(const std::string& key, const std::string& value);
void writeFrame(uint8_t** rgbData, int width, int height, int quality);
void setText(const std::string& key, const std::string& value) override;
void writeFrame(uint8_t** rgbData, int width, int height, int quality) override;

private:
void init();
Expand Down
2 changes: 1 addition & 1 deletion libffmpegthumbnailer/rgbwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RgbWriter : public ImageWriter
public:
RgbWriter(const std::string& outputFile);
RgbWriter(std::vector<uint8_t>& outputBuffer);
~RgbWriter();
~RgbWriter() override;

void setText(const std::string& key, const std::string& value) override;
void writeFrame(uint8_t** rgbData, int width, int height, int quality) override;
Expand Down

0 comments on commit 2f4605d

Please sign in to comment.