aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-06-01 16:21:32 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-09 16:52:56 +0200
commit0ac005f0d96b427d1ddc92af5805aa05bfe86aca (patch)
treee6044b6d90856b154a6f9cdcb1636b4fca4a4919 /libqpdf
parentae3642ce42e23bc454ee81e6383100b696670b37 (diff)
downloadqpdf-0ac005f0d96b427d1ddc92af5805aa05bfe86aca.tar.zst
Code tidy - Clang-Tidy rule modernize-use-override
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDFAcroFormDocumentHelper.cc4
-rw-r--r--libqpdf/QPDFPageObjectHelper.cc8
-rw-r--r--libqpdf/QPDF_json.cc2
-rw-r--r--libqpdf/qpdf/Pl_LZWDecoder.hh6
-rw-r--r--libqpdf/qpdf/Pl_MD5.hh6
-rw-r--r--libqpdf/qpdf/QPDF_Array.hh10
-rw-r--r--libqpdf/qpdf/QPDF_Bool.hh8
-rw-r--r--libqpdf/qpdf/QPDF_Destroyed.hh8
-rw-r--r--libqpdf/qpdf/QPDF_Dictionary.hh10
-rw-r--r--libqpdf/qpdf/QPDF_InlineImage.hh12
-rw-r--r--libqpdf/qpdf/QPDF_Integer.hh8
-rw-r--r--libqpdf/qpdf/QPDF_Name.hh12
-rw-r--r--libqpdf/qpdf/QPDF_Null.hh8
-rw-r--r--libqpdf/qpdf/QPDF_Operator.hh12
-rw-r--r--libqpdf/qpdf/QPDF_Real.hh12
-rw-r--r--libqpdf/qpdf/QPDF_Reserved.hh8
-rw-r--r--libqpdf/qpdf/QPDF_Stream.hh14
-rw-r--r--libqpdf/qpdf/QPDF_String.hh12
-rw-r--r--libqpdf/qpdf/QPDF_Unresolved.hh8
-rw-r--r--libqpdf/qpdf/ResourceFinder.hh2
-rw-r--r--libqpdf/qpdf/SF_ASCII85Decode.hh2
-rw-r--r--libqpdf/qpdf/SF_ASCIIHexDecode.hh2
-rw-r--r--libqpdf/qpdf/SF_DCTDecode.hh2
-rw-r--r--libqpdf/qpdf/SF_FlateLzwDecode.hh6
-rw-r--r--libqpdf/qpdf/SF_RunLengthDecode.hh2
-rw-r--r--libqpdf/qpdf/SecureRandomDataProvider.hh4
26 files changed, 94 insertions, 94 deletions
diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc
index 0d336b11..83feb358 100644
--- a/libqpdf/QPDFAcroFormDocumentHelper.cc
+++ b/libqpdf/QPDFAcroFormDocumentHelper.cc
@@ -469,8 +469,8 @@ namespace
ResourceReplacer(
std::map<std::string, std::map<std::string, std::string>> const& dr_map,
std::map<std::string, std::map<std::string, std::set<size_t>>> const& rnames);
- virtual ~ResourceReplacer() = default;
- virtual void handleToken(QPDFTokenizer::Token const&) override;
+ ~ResourceReplacer() override = default;
+ void handleToken(QPDFTokenizer::Token const&) override;
private:
size_t offset{0};
diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc
index 1bbac2c4..fd6e5215 100644
--- a/libqpdf/QPDFPageObjectHelper.cc
+++ b/libqpdf/QPDFPageObjectHelper.cc
@@ -20,8 +20,8 @@ namespace
from_page(from_page)
{
}
- virtual ~ContentProvider() = default;
- virtual void provideStreamData(QPDFObjGen const&, Pipeline* pipeline);
+ ~ContentProvider() override = default;
+ void provideStreamData(QPDFObjGen const&, Pipeline* pipeline) override;
private:
QPDFObjectHandle from_page;
@@ -44,8 +44,8 @@ namespace
{
public:
InlineImageTracker(QPDF*, size_t min_size, QPDFObjectHandle resources);
- virtual ~InlineImageTracker() = default;
- virtual void handleToken(QPDFTokenizer::Token const&);
+ ~InlineImageTracker() override = default;
+ void handleToken(QPDFTokenizer::Token const&) override;
QPDFObjectHandle convertIIDict(QPDFObjectHandle odict);
QPDF* qpdf;
diff --git a/libqpdf/QPDF_json.cc b/libqpdf/QPDF_json.cc
index c74cf4f7..f8fd689a 100644
--- a/libqpdf/QPDF_json.cc
+++ b/libqpdf/QPDF_json.cc
@@ -238,7 +238,7 @@ class QPDF::JSONReactor: public JSON::Reactor
}
}
}
- virtual ~JSONReactor() = default;
+ ~JSONReactor() override = default;
void dictionaryStart() override;
void arrayStart() override;
void containerEnd(JSON const& value) override;
diff --git a/libqpdf/qpdf/Pl_LZWDecoder.hh b/libqpdf/qpdf/Pl_LZWDecoder.hh
index b2135aa9..792fa8ef 100644
--- a/libqpdf/qpdf/Pl_LZWDecoder.hh
+++ b/libqpdf/qpdf/Pl_LZWDecoder.hh
@@ -10,9 +10,9 @@ class Pl_LZWDecoder: public Pipeline
{
public:
Pl_LZWDecoder(char const* identifier, Pipeline* next, bool early_code_change);
- virtual ~Pl_LZWDecoder() = default;
- virtual void write(unsigned char const* buf, size_t len);
- virtual void finish();
+ ~Pl_LZWDecoder() override = default;
+ void write(unsigned char const* buf, size_t len) override;
+ void finish() override;
private:
void sendNextCode();
diff --git a/libqpdf/qpdf/Pl_MD5.hh b/libqpdf/qpdf/Pl_MD5.hh
index 5763d6eb..fb9a2184 100644
--- a/libqpdf/qpdf/Pl_MD5.hh
+++ b/libqpdf/qpdf/Pl_MD5.hh
@@ -14,9 +14,9 @@ class Pl_MD5: public Pipeline
{
public:
Pl_MD5(char const* identifier, Pipeline* next);
- virtual ~Pl_MD5() = default;
- virtual void write(unsigned char const*, size_t);
- virtual void finish();
+ ~Pl_MD5() override = default;
+ void write(unsigned char const*, size_t) override;
+ void finish() override;
std::string getHexDigest();
// Enable/disable. Disabling the pipeline causes it to become a pass-through. This makes it
// possible to stick an MD5 pipeline in a pipeline when it may or may not be required. Disabling
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh
index 51a366a6..10ac9f8c 100644
--- a/libqpdf/qpdf/QPDF_Array.hh
+++ b/libqpdf/qpdf/QPDF_Array.hh
@@ -9,14 +9,14 @@
class QPDF_Array: public QPDFValue
{
public:
- virtual ~QPDF_Array() = default;
+ ~QPDF_Array() override = default;
static std::shared_ptr<QPDFObject> create(std::vector<QPDFObjectHandle> const& items);
static std::shared_ptr<QPDFObject>
create(std::vector<std::shared_ptr<QPDFObject>>&& items, bool sparse);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
- virtual void disconnect();
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
+ void disconnect() override;
int
size() const noexcept
diff --git a/libqpdf/qpdf/QPDF_Bool.hh b/libqpdf/qpdf/QPDF_Bool.hh
index 215d359a..0b4a71fd 100644
--- a/libqpdf/qpdf/QPDF_Bool.hh
+++ b/libqpdf/qpdf/QPDF_Bool.hh
@@ -6,11 +6,11 @@
class QPDF_Bool: public QPDFValue
{
public:
- virtual ~QPDF_Bool() = default;
+ ~QPDF_Bool() override = default;
static std::shared_ptr<QPDFObject> create(bool val);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
bool getVal() const;
private:
diff --git a/libqpdf/qpdf/QPDF_Destroyed.hh b/libqpdf/qpdf/QPDF_Destroyed.hh
index c8e35557..72e9130a 100644
--- a/libqpdf/qpdf/QPDF_Destroyed.hh
+++ b/libqpdf/qpdf/QPDF_Destroyed.hh
@@ -6,10 +6,10 @@
class QPDF_Destroyed: public QPDFValue
{
public:
- virtual ~QPDF_Destroyed() = default;
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ ~QPDF_Destroyed() override = default;
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
static std::shared_ptr<QPDFValue> getInstance();
private:
diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh
index da38db7a..0fb6636e 100644
--- a/libqpdf/qpdf/QPDF_Dictionary.hh
+++ b/libqpdf/qpdf/QPDF_Dictionary.hh
@@ -11,13 +11,13 @@
class QPDF_Dictionary: public QPDFValue
{
public:
- virtual ~QPDF_Dictionary() = default;
+ ~QPDF_Dictionary() override = default;
static std::shared_ptr<QPDFObject> create(std::map<std::string, QPDFObjectHandle> const& items);
static std::shared_ptr<QPDFObject> create(std::map<std::string, QPDFObjectHandle>&& items);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
- virtual void disconnect();
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
+ void disconnect() override;
// hasKey() and getKeys() treat keys with null values as if they aren't there. getKey() returns
// null for the value of a non-existent key. This is as per the PDF spec.
diff --git a/libqpdf/qpdf/QPDF_InlineImage.hh b/libqpdf/qpdf/QPDF_InlineImage.hh
index 553d1d71..bee12354 100644
--- a/libqpdf/qpdf/QPDF_InlineImage.hh
+++ b/libqpdf/qpdf/QPDF_InlineImage.hh
@@ -6,13 +6,13 @@
class QPDF_InlineImage: public QPDFValue
{
public:
- virtual ~QPDF_InlineImage() = default;
+ ~QPDF_InlineImage() override = default;
static std::shared_ptr<QPDFObject> create(std::string const& val);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
- virtual std::string
- getStringValue() const
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
+ std::string
+ getStringValue() const override
{
return val;
}
diff --git a/libqpdf/qpdf/QPDF_Integer.hh b/libqpdf/qpdf/QPDF_Integer.hh
index 180bb48a..2c2cf2f9 100644
--- a/libqpdf/qpdf/QPDF_Integer.hh
+++ b/libqpdf/qpdf/QPDF_Integer.hh
@@ -6,11 +6,11 @@
class QPDF_Integer: public QPDFValue
{
public:
- virtual ~QPDF_Integer() = default;
+ ~QPDF_Integer() override = default;
static std::shared_ptr<QPDFObject> create(long long value);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
long long getVal() const;
private:
diff --git a/libqpdf/qpdf/QPDF_Name.hh b/libqpdf/qpdf/QPDF_Name.hh
index 136ad5cb..c14d8659 100644
--- a/libqpdf/qpdf/QPDF_Name.hh
+++ b/libqpdf/qpdf/QPDF_Name.hh
@@ -6,16 +6,16 @@
class QPDF_Name: public QPDFValue
{
public:
- virtual ~QPDF_Name() = default;
+ ~QPDF_Name() override = default;
static std::shared_ptr<QPDFObject> create(std::string const& name);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
// Put # into strings with characters unsuitable for name token
static std::string normalizeName(std::string const& name);
- virtual std::string
- getStringValue() const
+ std::string
+ getStringValue() const override
{
return name;
}
diff --git a/libqpdf/qpdf/QPDF_Null.hh b/libqpdf/qpdf/QPDF_Null.hh
index 2bbb3db5..a59b7509 100644
--- a/libqpdf/qpdf/QPDF_Null.hh
+++ b/libqpdf/qpdf/QPDF_Null.hh
@@ -6,7 +6,7 @@
class QPDF_Null: public QPDFValue
{
public:
- virtual ~QPDF_Null() = default;
+ ~QPDF_Null() override = default;
static std::shared_ptr<QPDFObject> create();
static std::shared_ptr<QPDFObject> create(
std::shared_ptr<QPDFObject> parent,
@@ -16,9 +16,9 @@ class QPDF_Null: public QPDFValue
std::shared_ptr<QPDFValue> parent,
std::string_view const& static_descr,
std::string var_descr);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
private:
QPDF_Null();
diff --git a/libqpdf/qpdf/QPDF_Operator.hh b/libqpdf/qpdf/QPDF_Operator.hh
index 4fedb808..77aa5a17 100644
--- a/libqpdf/qpdf/QPDF_Operator.hh
+++ b/libqpdf/qpdf/QPDF_Operator.hh
@@ -6,13 +6,13 @@
class QPDF_Operator: public QPDFValue
{
public:
- virtual ~QPDF_Operator() = default;
+ ~QPDF_Operator() override = default;
static std::shared_ptr<QPDFObject> create(std::string const& val);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
- virtual std::string
- getStringValue() const
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
+ std::string
+ getStringValue() const override
{
return val;
}
diff --git a/libqpdf/qpdf/QPDF_Real.hh b/libqpdf/qpdf/QPDF_Real.hh
index f470e1a6..db5e0940 100644
--- a/libqpdf/qpdf/QPDF_Real.hh
+++ b/libqpdf/qpdf/QPDF_Real.hh
@@ -6,15 +6,15 @@
class QPDF_Real: public QPDFValue
{
public:
- virtual ~QPDF_Real() = default;
+ ~QPDF_Real() override = default;
static std::shared_ptr<QPDFObject> create(std::string const& val);
static std::shared_ptr<QPDFObject>
create(double value, int decimal_places, bool trim_trailing_zeroes);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
- virtual std::string
- getStringValue() const
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
+ std::string
+ getStringValue() const override
{
return val;
}
diff --git a/libqpdf/qpdf/QPDF_Reserved.hh b/libqpdf/qpdf/QPDF_Reserved.hh
index 8d6c74f8..9ba855b7 100644
--- a/libqpdf/qpdf/QPDF_Reserved.hh
+++ b/libqpdf/qpdf/QPDF_Reserved.hh
@@ -6,11 +6,11 @@
class QPDF_Reserved: public QPDFValue
{
public:
- virtual ~QPDF_Reserved() = default;
+ ~QPDF_Reserved() override = default;
static std::shared_ptr<QPDFObject> create();
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
private:
QPDF_Reserved();
diff --git a/libqpdf/qpdf/QPDF_Stream.hh b/libqpdf/qpdf/QPDF_Stream.hh
index 88331201..8488e157 100644
--- a/libqpdf/qpdf/QPDF_Stream.hh
+++ b/libqpdf/qpdf/QPDF_Stream.hh
@@ -16,19 +16,19 @@ class QPDF;
class QPDF_Stream: public QPDFValue
{
public:
- virtual ~QPDF_Stream() = default;
+ ~QPDF_Stream() override = default;
static std::shared_ptr<QPDFObject> create(
QPDF*,
QPDFObjGen const& og,
QPDFObjectHandle stream_dict,
qpdf_offset_t offset,
size_t length);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
- virtual void setDescription(
- QPDF*, std::shared_ptr<QPDFValue::Description>& description, qpdf_offset_t offset);
- virtual void disconnect();
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
+ void setDescription(
+ QPDF*, std::shared_ptr<QPDFValue::Description>& description, qpdf_offset_t offset) override;
+ void disconnect() override;
QPDFObjectHandle getDict() const;
bool isDataModified() const;
void setFilterOnWrite(bool);
diff --git a/libqpdf/qpdf/QPDF_String.hh b/libqpdf/qpdf/QPDF_String.hh
index d4a1bfd4..c34cafef 100644
--- a/libqpdf/qpdf/QPDF_String.hh
+++ b/libqpdf/qpdf/QPDF_String.hh
@@ -10,16 +10,16 @@ class QPDF_String: public QPDFValue
friend class QPDFWriter;
public:
- virtual ~QPDF_String() = default;
+ ~QPDF_String() override = default;
static std::shared_ptr<QPDFObject> create(std::string const& val);
static std::shared_ptr<QPDFObject> create_utf16(std::string const& utf8_val);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
std::string unparse(bool force_binary);
- virtual JSON getJSON(int json_version);
+ JSON getJSON(int json_version) override;
std::string getUTF8Val() const;
- virtual std::string
- getStringValue() const
+ std::string
+ getStringValue() const override
{
return val;
}
diff --git a/libqpdf/qpdf/QPDF_Unresolved.hh b/libqpdf/qpdf/QPDF_Unresolved.hh
index 43d2af31..0a1fa9a5 100644
--- a/libqpdf/qpdf/QPDF_Unresolved.hh
+++ b/libqpdf/qpdf/QPDF_Unresolved.hh
@@ -6,11 +6,11 @@
class QPDF_Unresolved: public QPDFValue
{
public:
- virtual ~QPDF_Unresolved() = default;
+ ~QPDF_Unresolved() override = default;
static std::shared_ptr<QPDFObject> create(QPDF* qpdf, QPDFObjGen const& og);
- virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
- virtual std::string unparse();
- virtual JSON getJSON(int json_version);
+ std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
+ std::string unparse() override;
+ JSON getJSON(int json_version) override;
private:
QPDF_Unresolved(QPDF* qpdf, QPDFObjGen const& og);
diff --git a/libqpdf/qpdf/ResourceFinder.hh b/libqpdf/qpdf/ResourceFinder.hh
index d8cb32e6..1c4c59a7 100644
--- a/libqpdf/qpdf/ResourceFinder.hh
+++ b/libqpdf/qpdf/ResourceFinder.hh
@@ -7,7 +7,7 @@ class ResourceFinder: public QPDFObjectHandle::ParserCallbacks
{
public:
ResourceFinder();
- virtual ~ResourceFinder() = default;
+ ~ResourceFinder() override = default;
void handleObject(QPDFObjectHandle, size_t, size_t) override;
void handleEOF() override;
std::set<std::string> const& getNames() const;
diff --git a/libqpdf/qpdf/SF_ASCII85Decode.hh b/libqpdf/qpdf/SF_ASCII85Decode.hh
index 8cf85e66..d474904c 100644
--- a/libqpdf/qpdf/SF_ASCII85Decode.hh
+++ b/libqpdf/qpdf/SF_ASCII85Decode.hh
@@ -9,7 +9,7 @@ class SF_ASCII85Decode: public QPDFStreamFilter
{
public:
SF_ASCII85Decode() = default;
- virtual ~SF_ASCII85Decode() = default;
+ ~SF_ASCII85Decode() override = default;
Pipeline*
getDecodePipeline(Pipeline* next) override
diff --git a/libqpdf/qpdf/SF_ASCIIHexDecode.hh b/libqpdf/qpdf/SF_ASCIIHexDecode.hh
index cd87761e..bb21ede6 100644
--- a/libqpdf/qpdf/SF_ASCIIHexDecode.hh
+++ b/libqpdf/qpdf/SF_ASCIIHexDecode.hh
@@ -9,7 +9,7 @@ class SF_ASCIIHexDecode: public QPDFStreamFilter
{
public:
SF_ASCIIHexDecode() = default;
- virtual ~SF_ASCIIHexDecode() = default;
+ ~SF_ASCIIHexDecode() override = default;
Pipeline*
getDecodePipeline(Pipeline* next) override
diff --git a/libqpdf/qpdf/SF_DCTDecode.hh b/libqpdf/qpdf/SF_DCTDecode.hh
index 997ba89a..619cf9c4 100644
--- a/libqpdf/qpdf/SF_DCTDecode.hh
+++ b/libqpdf/qpdf/SF_DCTDecode.hh
@@ -9,7 +9,7 @@ class SF_DCTDecode: public QPDFStreamFilter
{
public:
SF_DCTDecode() = default;
- virtual ~SF_DCTDecode() = default;
+ ~SF_DCTDecode() override = default;
Pipeline*
getDecodePipeline(Pipeline* next) override
diff --git a/libqpdf/qpdf/SF_FlateLzwDecode.hh b/libqpdf/qpdf/SF_FlateLzwDecode.hh
index 2230ec58..203d893b 100644
--- a/libqpdf/qpdf/SF_FlateLzwDecode.hh
+++ b/libqpdf/qpdf/SF_FlateLzwDecode.hh
@@ -9,10 +9,10 @@ class SF_FlateLzwDecode: public QPDFStreamFilter
{
public:
SF_FlateLzwDecode(bool lzw);
- virtual ~SF_FlateLzwDecode() = default;
+ ~SF_FlateLzwDecode() override = default;
- virtual bool setDecodeParms(QPDFObjectHandle decode_parms);
- virtual Pipeline* getDecodePipeline(Pipeline* next);
+ bool setDecodeParms(QPDFObjectHandle decode_parms) override;
+ Pipeline* getDecodePipeline(Pipeline* next) override;
static std::shared_ptr<QPDFStreamFilter> flate_factory();
static std::shared_ptr<QPDFStreamFilter> lzw_factory();
diff --git a/libqpdf/qpdf/SF_RunLengthDecode.hh b/libqpdf/qpdf/SF_RunLengthDecode.hh
index 83c498dc..4a51cf6f 100644
--- a/libqpdf/qpdf/SF_RunLengthDecode.hh
+++ b/libqpdf/qpdf/SF_RunLengthDecode.hh
@@ -9,7 +9,7 @@ class SF_RunLengthDecode: public QPDFStreamFilter
{
public:
SF_RunLengthDecode() = default;
- virtual ~SF_RunLengthDecode() = default;
+ ~SF_RunLengthDecode() override = default;
Pipeline*
getDecodePipeline(Pipeline* next) override
diff --git a/libqpdf/qpdf/SecureRandomDataProvider.hh b/libqpdf/qpdf/SecureRandomDataProvider.hh
index d701a905..f6a29b76 100644
--- a/libqpdf/qpdf/SecureRandomDataProvider.hh
+++ b/libqpdf/qpdf/SecureRandomDataProvider.hh
@@ -7,8 +7,8 @@ class SecureRandomDataProvider: public RandomDataProvider
{
public:
SecureRandomDataProvider() = default;
- virtual ~SecureRandomDataProvider() = default;
- virtual void provideRandomData(unsigned char* data, size_t len);
+ ~SecureRandomDataProvider() override = default;
+ void provideRandomData(unsigned char* data, size_t len) override;
static RandomDataProvider* getInstance();
};