Merge "health: do not use default destructor." am: 4915df85a0 am: 5ad2b7fda6

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1891477

Change-Id: Iec8a6694db080c3a092df0cde30027a141b8cf3c
This commit is contained in:
Yifan Hong
2021-11-16 02:55:24 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ Health::Health(std::string_view instance_name, std::unique_ptr<struct healthd_co
battery_monitor_.init(healthd_config_.get());
}
Health::~Health() {}
//
// Getters.
//

View File

@@ -43,6 +43,7 @@ class Health : public BnHealth, public HalHealthLoopCallback {
// A subclass may modify |config| before passing it to the parent constructor.
// See implementation of Health for code samples.
Health(std::string_view instance_name, std::unique_ptr<struct healthd_config>&& config);
virtual ~Health();
ndk::ScopedAStatus registerCallback(
const std::shared_ptr<IHealthInfoCallback>& callback) override;