mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable modernize-use-equals-default clang tidy rule
Summary: changelog: [internal] You can read more about this rule on https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html Reviewed By: rubennorte Differential Revision: D33295116 fbshipit-source-id: d7da62c35e141fc2bf5a83c28f80f4f8d355c4cb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1251b2f993
commit
bf9872a7b5
@@ -20,5 +20,6 @@ modernize-replace-random-shuffle,
|
||||
modernize-unary-static-assert,
|
||||
modernize-use-emplace,
|
||||
modernize-shrink-to-fit,
|
||||
modernize-use-equals-default,
|
||||
'
|
||||
...
|
||||
|
||||
@@ -35,7 +35,7 @@ Sealable::Sealable(Sealable &&other) noexcept : sealed_(false) {
|
||||
other.ensureUnsealed();
|
||||
};
|
||||
|
||||
Sealable::~Sealable() noexcept {};
|
||||
Sealable::~Sealable() noexcept = default;
|
||||
|
||||
Sealable &Sealable::operator=(const Sealable &other) {
|
||||
ensureUnsealed();
|
||||
|
||||
@@ -56,7 +56,7 @@ NativeModuleRegistry buildNativeModuleRegistry() {
|
||||
|
||||
class MockReactNativeConfig : public ReactNativeConfig {
|
||||
public:
|
||||
MockReactNativeConfig() {}
|
||||
MockReactNativeConfig() = default;
|
||||
bool getBool(const std::string ¶m) const override {
|
||||
return mockSimpleTestValue_;
|
||||
}
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ using namespace facebook::jni;
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
TextLayoutManager::~TextLayoutManager() {}
|
||||
TextLayoutManager::~TextLayoutManager() = default;
|
||||
|
||||
void *TextLayoutManager::getNativeTextLayoutManager() const {
|
||||
return self_;
|
||||
|
||||
Reference in New Issue
Block a user