sdm660-common: gps: Fix misleading indentation
* That makes clang17 happy * Fix: device/xiaomi/violet/gps/android/utils/battery_listener.cpp:191:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] auto r = mHealth->unlinkToDeath(this); ^ device/xiaomi/violet/gps/android/utils/battery_listener.cpp:189:9: note: previous statement is here if (mHealth != NULL) ^ 1 warning and 1 error generated. Change-Id: I3be1e3de45ce184c9d3dbcede57a312375a91498 Signed-off-by: Nanhumly <admin@warbler.cc> Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
425e2083a3
commit
d4034097ab
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,7 @@ BatteryListenerImpl::~BatteryListenerImpl()
|
|||
{
|
||||
{
|
||||
std::lock_guard<std::mutex> _l(mLock);
|
||||
if (mHealth != NULL)
|
||||
if (mHealth != NULL) {
|
||||
mHealth->unregisterCallback(this);
|
||||
auto r = mHealth->unlinkToDeath(this);
|
||||
if (!r.isOk() || r == false) {
|
||||
|
@ -192,6 +192,7 @@ BatteryListenerImpl::~BatteryListenerImpl()
|
|||
r.description().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
mDone = true;
|
||||
mThread->join();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue