Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fbreader/src/bookmodel/BookModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class BookModel : public ZLUserDataHolder {
class HyperlinkMatcher {

public:
virtual ~HyperlinkMatcher() {}
virtual Label match(const std::map<std::string,Label> &lMap, const std::string &id) const = 0;
};

Expand Down
3 changes: 3 additions & 0 deletions fbreader/src/formats/doc/OleStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
OleStreamReader::OleStreamReader() : myNextPieceNumber(0) {
}

OleStreamReader::~OleStreamReader() {
}

bool OleStreamReader::readDocument(shared_ptr<ZLInputStream> inputStream, bool doReadFormattingData) {
static const std::string WORD_DOCUMENT = "WordDocument";

Expand Down
1 change: 1 addition & 0 deletions fbreader/src/formats/doc/OleStreamReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class OleStreamReader {

public:
OleStreamReader();
virtual ~OleStreamReader();
bool readDocument(shared_ptr<ZLInputStream> stream, bool doReadFormattingData);

protected:
Expand Down
4 changes: 4 additions & 0 deletions fbreader/src/formats/txt/TxtReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class TxtReaderCore {

public:
TxtReaderCore(TxtReader &reader);
virtual ~TxtReaderCore();
virtual void readDocument(ZLInputStream &stream);

protected:
Expand Down Expand Up @@ -90,6 +91,9 @@ void TxtReader::readDocument(ZLInputStream &stream) {
TxtReaderCore::TxtReaderCore(TxtReader &reader) : myReader(reader) {
}

TxtReaderCore::~TxtReaderCore() {
}

TxtReaderCoreUtf16::TxtReaderCoreUtf16(TxtReader &reader) : TxtReaderCore(reader) {
}

Expand Down
1 change: 1 addition & 0 deletions fbreader/src/network/BookReference.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class BookReference {

public:
BookReference(const std::string &url, Format format, Type type);
virtual ~BookReference() {}

public:
const std::string URL;
Expand Down
1 change: 1 addition & 0 deletions zlibrary/core/src/dialogs/ZLOpenFileDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ZLOpenFileDialog {
};

public:
virtual ~ZLOpenFileDialog() {}
virtual bool run() = 0;
virtual std::string filePath() const = 0;
virtual std::string directoryPath() const = 0;
Expand Down
3 changes: 3 additions & 0 deletions zlibrary/core/src/network/ZLNetworkRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ ZLNetworkRequest::ZLNetworkRequest(const std::string &url) :
ZLLogger::Instance().println("URL", url);
}

ZLNetworkRequest::~ZLNetworkRequest() {
}

const std::string &ZLNetworkRequest::errorMessage() const {
return myErrorMessage;
}
Expand Down
2 changes: 2 additions & 0 deletions zlibrary/core/src/network/ZLNetworkRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class ZLNetworkRequest {
ZLNetworkRequest(const std::string &url);

public:
virtual ~ZLNetworkRequest();

virtual bool handleHeader(void *ptr, std::size_t size);
virtual bool handleContent(void *ptr, std::size_t size) = 0;

Expand Down
1 change: 1 addition & 0 deletions zlibrary/core/src/resources/ZLResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class ZLTreeResource : public ZLResource {
private:
class Condition {
public:
virtual ~Condition() {}
virtual bool accepts(int number) = 0;
};

Expand Down
2 changes: 2 additions & 0 deletions zlibrary/core/src/tree/ZLTreeListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
class ZLTreeListener {

public:
virtual ~ZLTreeListener() {}

virtual void onExpandRequest(ZLTreeNode *node) = 0;
virtual void onCloseRequest() = 0;
// Parent has new or remove child at index
Expand Down
1 change: 1 addition & 0 deletions zlibrary/core/src/tree/ZLTreePageNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

class ZLTreePageInfo {
public:
virtual ~ZLTreePageInfo() {}

virtual bool isPageInfoLoaded() = 0;
virtual void loadAll(shared_ptr<ZLNetworkRequest::Listener> listener) = 0;
Expand Down
1 change: 1 addition & 0 deletions zlibrary/core/src/tree/ZLTreeSearcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

class ZLTreeSearcher {
public:
virtual ~ZLTreeSearcher() {}
virtual void simpleSearch(const std::string &pattern) = 0;
};

Expand Down