- Fix UNINIT_CTOR
- Fix AUTO_CAUSES_COPY
- Fix COMPARE_RESULT_OF_NEW
Change-Id: I4dda5ce91d04101513b2821dc4ca9951a3f154d4
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
void Launchpad::OnSigchldReceived(pid_t pid, int status) {
fast_launches_.erase(pid);
- auto found = pid_map_.find(pid);
+ const auto& found = pid_map_.find(pid);
if (found != pid_map_.end()) {
- auto appid = found->second;
+ const auto& appid = found->second;
_E("pid=%d, appid=%s", pid, appid.c_str());
pid_map_.erase(found);
}
return nullptr;
}
- return std::unique_ptr<ClientSocket>(new ClientSocket(client_fd));
+ return std::unique_ptr<ClientSocket>(
+ new (std::nothrow) ClientSocket(client_fd));
}
void ServerSocket::Bind(const std::string& bindpoint) {
private:
Vconf vconf_;
- int hwacc_;
+ int hwacc_ = SETTING_HW_ACCELERATION_NONE;
bool init_ = false;
};