react-native | Fix inconsistent-missing-destructor-override warnings (#36887)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36887

changelog: [internal]

Fixing inconsistent use of 'override' in destructors.

Differential Revision: D44942615

fbshipit-source-id: 16336596d67442d9f1ca775cc8f97d35247a4257
This commit is contained in:
Nikita Lutsenko
2023-04-13 04:18:33 -07:00
committed by Facebook GitHub Bot
parent 130a951e2e
commit 6be4449a27
4 changed files with 3 additions and 5 deletions
@@ -91,8 +91,6 @@ class ShadowNode : public Sealable,
ShadowNode(ShadowNode const &shadowNode) noexcept = delete;
ShadowNode &operator=(ShadowNode const &other) noexcept = delete;
virtual ~ShadowNode() = default;
/*
* Clones the shadow node using stored `cloneFunction`.
*/
@@ -40,7 +40,7 @@ class Scheduler final : public UIManagerDelegate {
SchedulerToolbox const &schedulerToolbox,
UIManagerAnimationDelegate *animationDelegate,
SchedulerDelegate *delegate);
~Scheduler();
~Scheduler() override;
#pragma mark - Surface Management
@@ -38,7 +38,7 @@ class UIManager final : public ShadowTreeDelegate {
BackgroundExecutor backgroundExecutor,
ContextContainer::Shared contextContainer);
~UIManager();
~UIManager() override;
void setComponentDescriptorRegistry(
const SharedComponentDescriptorRegistry &componentDescriptorRegistry);
@@ -37,7 +37,7 @@ class UIManagerBinding : public jsi::HostObject {
UIManagerBinding(std::shared_ptr<UIManager> uiManager);
~UIManagerBinding();
~UIManagerBinding() override;
jsi::Value getInspectorDataForInstance(
jsi::Runtime &runtime,