diff options
author | Kevin Tang <zhikait@codeaurora.org> | 2019-02-27 14:44:29 -0800 |
---|---|---|
committer | Kevin Tang <zhikait@codeaurora.org> | 2019-03-06 11:57:33 -0800 |
commit | b082fd7f7b113eea91a6a8756bb3991dda7b0491 (patch) | |
tree | ec7222d65111f7afe2fc4ab8e0e91ac1c69f6a04 /core/LocAdapterBase.h | |
parent | 90310754f831db93624240fa3592d2ef50e564d6 (diff) | |
download | gps-b082fd7f7b113eea91a6a8756bb3991dda7b0491.tar.gz |
allow a isMaster client in LocAdapterProxyBase ctor
This would allow GeofenceAdapter become a master
adapter, in case it gets created before GnssAdapter.
Change-Id: I9eb55b7fac9970fd11d4e34bdf7cf824e5b1c586
CRs-Fixed: 2403691
Diffstat (limited to 'core/LocAdapterBase.h')
-rw-r--r-- | core/LocAdapterBase.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h index e4f7be2..97e0b4a 100644 --- a/core/LocAdapterBase.h +++ b/core/LocAdapterBase.h @@ -69,15 +69,11 @@ protected: inline LocAdapterBase(const MsgTask* msgTask) : mIsMaster(false), mEvtMask(0), mContext(NULL), mLocApi(NULL), mLocAdapterProxyBase(NULL), mMsgTask(msgTask) {} - LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask, - ContextBase* context, bool isMaster, - LocAdapterProxyBase *adapterProxyBase = NULL); public: inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); } - inline LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask, - ContextBase* context, - LocAdapterProxyBase *adapterProxyBase = NULL) : - LocAdapterBase(mask, context, false, adapterProxyBase) {} + LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask, + ContextBase* context, bool isMaster = false, + LocAdapterProxyBase *adapterProxyBase = NULL); inline LOC_API_ADAPTER_EVENT_MASK_T checkMask(LOC_API_ADAPTER_EVENT_MASK_T mask) const { |