Fix clang-6 strictness surrounding virtual destructors
Reviewed By: smeenai Differential Revision: D7326765 fbshipit-source-id: 9df477dfa89812e05e79b5e6d510bcbbc793381c
This commit is contained in:
parent
ff70ecf868
commit
12535ae69d
|
@ -16,6 +16,8 @@ namespace react {
|
|||
*/
|
||||
class ExceptionManager {
|
||||
public:
|
||||
virtual ~ExceptionManager() = default;
|
||||
|
||||
virtual void handleSoftException(const std::exception &e) const = 0;
|
||||
virtual void handleFatalException(const std::exception &e) const = 0;
|
||||
};
|
||||
|
|
|
@ -26,6 +26,8 @@ using SharedComponentDescriptor = std::shared_ptr<ComponentDescriptor>;
|
|||
class ComponentDescriptor {
|
||||
public:
|
||||
|
||||
virtual ~ComponentDescriptor() = default;
|
||||
|
||||
/*
|
||||
* Returns `componentHandle` associated with particular kind of components.
|
||||
* All `ShadowNode`s of this type must return same `componentHandle`.
|
||||
|
|
|
@ -28,6 +28,8 @@ class Props:
|
|||
public virtual DebugStringConvertible {
|
||||
|
||||
public:
|
||||
virtual ~Props() = default;
|
||||
|
||||
virtual void apply(const RawProps &rawProps);
|
||||
|
||||
private:
|
||||
|
|
|
@ -31,6 +31,8 @@ struct DebugStringConvertibleOptions {
|
|||
class DebugStringConvertible {
|
||||
|
||||
public:
|
||||
virtual ~DebugStringConvertible() = default;
|
||||
|
||||
// Returns a name of the object.
|
||||
// Default implementation returns "Node".
|
||||
virtual std::string getDebugName() const;
|
||||
|
|
Loading…
Reference in New Issue