Skip to content

Commit

Permalink
[c++] Fixed virtual destructors (apache#2754)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Oct 10, 2018
1 parent 95f67d0 commit 8d396c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar-client-cpp/include/pulsar/CryptoKeyReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace pulsar {

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

/*
* Return the encryption key corresponding to the key name in the argument
Expand Down
2 changes: 2 additions & 0 deletions pulsar-client-cpp/include/pulsar/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class Logger {
ERROR = 3
};

virtual ~Logger() {}

virtual bool isEnabled(Level level) = 0;

virtual void log(Level level, int line, const std::string& message) = 0;
Expand Down
2 changes: 2 additions & 0 deletions pulsar-client-cpp/include/pulsar/TopicMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ namespace pulsar {
*/
class TopicMetadata {
public:
virtual ~TopicMetadata() {}

virtual int getNumPartitions() const = 0;
};
} // namespace pulsar
Expand Down
2 changes: 2 additions & 0 deletions pulsar-client-cpp/lib/Hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
namespace pulsar {
class Hash {
public:
virtual ~Hash() {}

/**
* Generate the hash of a given String
*
Expand Down

0 comments on commit 8d396c3

Please sign in to comment.