diff --git a/atom/browser/api/atom_api_download_item.cc b/atom/browser/api/atom_api_download_item.cc index aa1e719f485..2e3068a5d3c 100644 --- a/atom/browser/api/atom_api_download_item.cc +++ b/atom/browser/api/atom_api_download_item.cc @@ -41,11 +41,11 @@ void DownloadItem::OnDownloadDestroyed(content::DownloadItem* download) { bool DownloadItem::IsDestroyed() const { return download_item_ == nullptr; -}; +} void DownloadItem::Destroy() { download_item_ = nullptr; -}; +} int64 DownloadItem::GetReceivedBytes() { return download_item_->GetReceivedBytes(); diff --git a/atom/browser/api/atom_api_download_item.h b/atom/browser/api/atom_api_download_item.h index 31546c1c62f..ca87a14ae80 100644 --- a/atom/browser/api/atom_api_download_item.h +++ b/atom/browser/api/atom_api_download_item.h @@ -19,7 +19,7 @@ namespace api { class DownloadItem : public mate::TrackableObject, public content::DownloadItem::Observer { public: - DownloadItem(content::DownloadItem* download_item); + explicit DownloadItem(content::DownloadItem* download_item); ~DownloadItem(); static mate::Handle Create(v8::Isolate* isolate, content::DownloadItem* item);