Soft memory leak bugfix

This commit is contained in:
Jakub Melka
2020-05-30 18:31:50 +02:00
parent 91f1779053
commit 23a1275b9f
4 changed files with 18 additions and 6 deletions

View File

@@ -45,6 +45,11 @@ QByteArray PDFObjectStorage::getDecodedStream(const PDFStream* stream) const
return PDFStreamFilterStorage::getDecodedStream(stream, std::bind(QOverload<const PDFObject&>::of(&PDFObjectStorage::getObject), this, std::placeholders::_1), getSecurityHandler());
}
PDFDocument::~PDFDocument()
{
}
bool PDFDocument::operator==(const PDFDocument& other) const
{
// Document is considered equal, if storage is equal

View File

@@ -391,6 +391,7 @@ class PDFFORQTLIBSHARED_EXPORT PDFDocument
public:
explicit PDFDocument() = default;
~PDFDocument();
bool operator==(const PDFDocument& other) const;
bool operator!=(const PDFDocument& other) const { return !(*this == other); }