Commit b598223d authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Mark functions with override

parent 51ab24a4
...@@ -42,7 +42,7 @@ class NOOPDecompressor : public Decompressor ...@@ -42,7 +42,7 @@ class NOOPDecompressor : public Decompressor
{ {
public: public:
NOOPDecompressor(const PDB& p) : Decompressor(p) {} NOOPDecompressor(const PDB& p) : Decompressor(p) {}
QByteArray decompress(const QByteArray& data) { return data; } QByteArray decompress(const QByteArray& data) override { return data; }
}; };
...@@ -50,7 +50,7 @@ class RLEDecompressor : public Decompressor ...@@ -50,7 +50,7 @@ class RLEDecompressor : public Decompressor
{ {
public: public:
RLEDecompressor(const PDB& p) : Decompressor(p) {} RLEDecompressor(const PDB& p) : Decompressor(p) {}
QByteArray decompress(const QByteArray& data); QByteArray decompress(const QByteArray& data) override;
}; };
class BitReader class BitReader
...@@ -90,7 +90,7 @@ class HuffdicDecompressor : public Decompressor ...@@ -90,7 +90,7 @@ class HuffdicDecompressor : public Decompressor
{ {
public: public:
HuffdicDecompressor(const PDB& p); HuffdicDecompressor(const PDB& p);
QByteArray decompress(const QByteArray& data); QByteArray decompress(const QByteArray& data) override;
private: private:
void unpack(BitReader reader, int depth = 0); void unpack(BitReader reader, int depth = 0);
QList<QByteArray> dicts; QList<QByteArray> dicts;
......
...@@ -20,8 +20,8 @@ class QMOBIPOCKET_EXPORT QFileStream : public Stream ...@@ -20,8 +20,8 @@ class QMOBIPOCKET_EXPORT QFileStream : public Stream
public: public:
QFileStream(const QString& name); QFileStream(const QString& name);
~QFileStream(); ~QFileStream();
int read(char* buf, int size); int read(char* buf, int size) override;
bool seek(int pos); bool seek(int pos) override;
private: private:
QFile *d; QFile *d;
}; };
......
...@@ -16,8 +16,8 @@ class MobiThumbnail : public ThumbCreator ...@@ -16,8 +16,8 @@ class MobiThumbnail : public ThumbCreator
{ {
public: public:
MobiThumbnail() {} MobiThumbnail() {}
virtual bool create(const QString &path, int, int, QImage &img); bool create(const QString &path, int, int, QImage &img) override;
virtual Flags flags() const; Flags flags() const override;
}; };
#endif #endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment