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
This commit is contained in:
Katz Yamada 2017-11-15 09:22:57 -08:00
parent 9f2a492534
commit 104f1fee14

View file

@ -74,7 +74,7 @@ public:
// Argument name contains the name of the target unix socket. data contains the // 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. // 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. // 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: private:
int mIpcFd; int mIpcFd;