diff options
author | Katz Yamada <kyamada@codeaurora.org> | 2017-11-15 09:22:57 -0800 |
---|---|---|
committer | Katz Yamada <kyamada@codeaurora.org> | 2017-11-16 10:48:11 -0800 |
commit | 104f1fee14e5783e397b417d6e6f2f6aa964b88f (patch) | |
tree | 5736c4ca8b83255add29719077e2afe5f7760c27 /utils/LocIpc.h | |
parent | 9f2a492534a5ac5ec505296c7f2e86358cfac498 (diff) | |
download | gps-104f1fee14e5783e397b417d6e6f2f6aa964b88f.tar.gz |
Location Utils - Improve send method of LocIpc
Change LocIpc::send() method implementation from
regular member to static, since it does not modify
any of its class member variables. Sender code
should be able to call this method without creating
an instance.
Change-Id: I9d08404c3fae615fd20531904241bf2e246fa592
CRs-Fixed: 2143522
Diffstat (limited to 'utils/LocIpc.h')
-rw-r--r-- | utils/LocIpc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/LocIpc.h b/utils/LocIpc.h index 258fd42..1118119 100644 --- a/utils/LocIpc.h +++ b/utils/LocIpc.h @@ -74,7 +74,7 @@ public: // Argument name contains the name of the target unix socket. data contains the // message to be sent out. Convert your message to a string before calling this function. // The function will return true on success, and false on failure. - bool send(const char name[], const std::string& data); + static bool send(const char name[], const std::string& data); private: int mIpcFd; |