summaryrefslogtreecommitdiff
path: root/core/LocAdapterBase.h
diff options
context:
space:
mode:
authorJiafei Wen <jiafeiw@codeaurora.org>2013-10-23 11:28:51 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2013-10-28 17:42:55 -0700
commit747f69507a5f6beecfdf82791e2afe06c7f7b879 (patch)
treedec0372ca6fbd5526d6f56714d39c1bfd320ea7d /core/LocAdapterBase.h
parent0561631818391491bc08ea67f700d329e333ce02 (diff)
downloadgps-747f69507a5f6beecfdf82791e2afe06c7f7b879.tar.gz
Add LocApiProxyBase to context
This is so that the izat adapters can get access to LocApiProxy through the context. Change-Id: I15a477d159375740047cd7386f8c8c5163fdaf87
Diffstat (limited to 'core/LocAdapterBase.h')
-rw-r--r--core/LocAdapterBase.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h
index f279f9f..be31de6 100644
--- a/core/LocAdapterBase.h
+++ b/core/LocAdapterBase.h
@@ -44,12 +44,10 @@ protected:
inline LocAdapterBase(const MsgTask* msgTask) :
mEvtMask(0), mContext(NULL), mLocApi(NULL), mMsgTask(msgTask) {}
-
+public:
+ inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); }
LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask,
ContextBase* context);
- inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); }
-
-public:
inline LOC_API_ADAPTER_EVENT_MASK_T
checkMask(LOC_API_ADAPTER_EVENT_MASK_T mask) const {
return mEvtMask & mask;