diff options
author | yang-g <yangg@google.com> | 2018-12-06 09:07:47 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2018-12-06 09:07:47 -0800 |
commit | 22c74fcff56f7a89c0404c24ea0efe424559ebab (patch) | |
tree | 37d6bf715e1a602e7ba3d5638298417c6a45448c /src/core/lib/debug/trace.h | |
parent | 8ba8dadcc924296a120ce50329cd08fdfec6aec6 (diff) |
Make TraceFlag trivially destructible
Diffstat (limited to 'src/core/lib/debug/trace.h')
-rw-r--r-- | src/core/lib/debug/trace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/debug/trace.h b/src/core/lib/debug/trace.h index 5ed52454bd..4623494520 100644 --- a/src/core/lib/debug/trace.h +++ b/src/core/lib/debug/trace.h @@ -53,7 +53,8 @@ void grpc_tracer_enable_flag(grpc_core::TraceFlag* flag); class TraceFlag { public: TraceFlag(bool default_enabled, const char* name); - ~TraceFlag() {} + // This needs to be trivially destructible as it is used as global variable. + ~TraceFlag() = default; const char* name() const { return name_; } |