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:
parent
9f2a492534
commit
104f1fee14
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue