From 104f1fee14e5783e397b417d6e6f2f6aa964b88f Mon Sep 17 00:00:00 2001 From: Katz Yamada Date: Wed, 15 Nov 2017 09:22:57 -0800 Subject: [PATCH] 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 --- utils/LocIpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/LocIpc.h b/utils/LocIpc.h index 258fd42e..11181197 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;