Fix linting issues

This commit is contained in:
Paul Betts 2015-07-24 03:30:23 -07:00
parent 75b08f510e
commit 70feb08f84
2 changed files with 6 additions and 3 deletions

View file

@ -40,7 +40,7 @@ NotifyIcon::NotifyIcon(NotifyIconHost* host,
base::MD5Sum(explicit_app_id,
sizeof(wchar_t) * wcslen(explicit_app_id),
(base::MD5Digest*)&tray_app_id_hash_);
CoTaskMemFree(explicit_app_id);
}
@ -179,7 +179,10 @@ void NotifyIcon::InitIconData(NOTIFYICONDATA* icon_data) {
icon_data->cbSize = sizeof(NOTIFYICONDATA);
icon_data->hWnd = window_;
icon_data->uID = icon_id_;
memcpy((void*)&icon_data->guidItem, &tray_app_id_hash_, sizeof(GUID));
memcpy(reinterpret_cast<void*>(&icon_data->guidItem),
&tray_app_id_hash_,
sizeof(GUID));
}
} // namespace atom

View file

@ -75,7 +75,7 @@ class NotifyIcon : public TrayIcon {
// The context menu.
ui::SimpleMenuModel* menu_model_;
// A hash of the app model ID
GUID tray_app_id_hash_;