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
{
public:
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
{
public:
RLEDecompressor(const PDB& p) : Decompressor(p) {}
QByteArray decompress(const QByteArray& data);
QByteArray decompress(const QByteArray& data) override;
};
class BitReader
......@@ -90,7 +90,7 @@ class HuffdicDecompressor : public Decompressor
{
public:
HuffdicDecompressor(const PDB& p);
QByteArray decompress(const QByteArray& data);
QByteArray decompress(const QByteArray& data) override;
private:
void unpack(BitReader reader, int depth = 0);
QList<QByteArray> dicts;
......
......@@ -20,8 +20,8 @@ class QMOBIPOCKET_EXPORT QFileStream : public Stream
public:
QFileStream(const QString& name);
~QFileStream();
int read(char* buf, int size);
bool seek(int pos);
int read(char* buf, int size) override;
bool seek(int pos) override;
private:
QFile *d;
};
......
......@@ -16,8 +16,8 @@ class MobiThumbnail : public ThumbCreator
{
public:
MobiThumbnail() {}
virtual bool create(const QString &path, int, int, QImage &img);
virtual Flags flags() const;
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
};
#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