summaryrefslogtreecommitdiff
path: root/utils/LocIpc.h
diff options
context:
space:
mode:
authorKatz Yamada <kyamada@codeaurora.org>2017-11-15 09:22:57 -0800
committerKatz Yamada <kyamada@codeaurora.org>2017-11-16 10:48:11 -0800
commit104f1fee14e5783e397b417d6e6f2f6aa964b88f (patch)
tree5736c4ca8b83255add29719077e2afe5f7760c27 /utils/LocIpc.h
parent9f2a492534a5ac5ec505296c7f2e86358cfac498 (diff)
downloadgps-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.h2
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;