Automated Code Change
PiperOrigin-RevId: 812584266
diff --git a/src/google/protobuf/io/tokenizer.cc b/src/google/protobuf/io/tokenizer.cc
index b4d6a70..156b818 100644
--- a/src/google/protobuf/io/tokenizer.cc
+++ b/src/google/protobuf/io/tokenizer.cc
@@ -188,7 +188,7 @@
} // anonymous namespace
-ErrorCollector::~ErrorCollector() {}
+ErrorCollector::~ErrorCollector() = default;
// ===================================================================
diff --git a/src/google/protobuf/io/tokenizer.h b/src/google/protobuf/io/tokenizer.h
index 007d090..be165a6 100644
--- a/src/google/protobuf/io/tokenizer.h
+++ b/src/google/protobuf/io/tokenizer.h
@@ -46,7 +46,7 @@
// to stdout.
class PROTOBUF_EXPORT ErrorCollector {
public:
- inline ErrorCollector() {}
+ inline ErrorCollector() = default;
ErrorCollector(const ErrorCollector&) = delete;
ErrorCollector& operator=(const ErrorCollector&) = delete;
virtual ~ErrorCollector();
diff --git a/src/google/protobuf/io/tokenizer_unittest.cc b/src/google/protobuf/io/tokenizer_unittest.cc
index 668a9da..ad88cca 100644
--- a/src/google/protobuf/io/tokenizer_unittest.cc
+++ b/src/google/protobuf/io/tokenizer_unittest.cc
@@ -100,7 +100,7 @@
public:
TestInputStream(const void* data, int size, int block_size)
: array_stream_(data, size, block_size), counter_(0) {}
- ~TestInputStream() override {}
+ ~TestInputStream() override = default;
// implements ZeroCopyInputStream ----------------------------------
bool Next(const void** data, int* size) override {
@@ -132,8 +132,8 @@
// block of text which can be checked.
class TestErrorCollector : public ErrorCollector {
public:
- TestErrorCollector() {}
- ~TestErrorCollector() override {}
+ TestErrorCollector() = default;
+ ~TestErrorCollector() override = default;
std::string text_;
diff --git a/src/google/protobuf/io/zero_copy_stream_unittest.cc b/src/google/protobuf/io/zero_copy_stream_unittest.cc
index 3658e87..47efda8 100644
--- a/src/google/protobuf/io/zero_copy_stream_unittest.cc
+++ b/src/google/protobuf/io/zero_copy_stream_unittest.cc
@@ -1561,7 +1561,7 @@
#else
// Dummy constructor and destructor to ensure that GCC doesn't complain
// that debug_disabler is an unused variable.
- MsvcDebugDisabler() {}
+ MsvcDebugDisabler() = default;
~MsvcDebugDisabler() {}
#endif
};