From 3bdeac98bf079f6cf9fdf67cb66a2084eb6aad0d Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Sun, 10 Jul 2016 13:21:42 +0200 Subject: [PATCH] Modernize to C++11: use override. --- atom/renderer/api/atom_api_web_frame.cc | 2 +- chromium_src/chrome/browser/printing/print_job_worker.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/atom/renderer/api/atom_api_web_frame.cc b/atom/renderer/api/atom_api_web_frame.cc index 0b291d3b552..dce72b58095 100644 --- a/atom/renderer/api/atom_api_web_frame.cc +++ b/atom/renderer/api/atom_api_web_frame.cc @@ -39,7 +39,7 @@ class ScriptExecutionCallback : public blink::WebScriptExecutionCallback { explicit ScriptExecutionCallback(const CompletionCallback& callback) : callback_(callback) {} - ~ScriptExecutionCallback() {} + ~ScriptExecutionCallback() override {} void completed( const blink::WebVector>& result) override { diff --git a/chromium_src/chrome/browser/printing/print_job_worker.cc b/chromium_src/chrome/browser/printing/print_job_worker.cc index b2040c46384..33a8b7d7352 100644 --- a/chromium_src/chrome/browser/printing/print_job_worker.cc +++ b/chromium_src/chrome/browser/printing/print_job_worker.cc @@ -38,10 +38,10 @@ void HoldRefCallback(const scoped_refptr& owner, class PrintingContextDelegate : public PrintingContext::Delegate { public: PrintingContextDelegate(int render_process_id, int render_view_id); - virtual ~PrintingContextDelegate(); + ~PrintingContextDelegate() override; - virtual gfx::NativeView GetParentView() override; - virtual std::string GetAppLocale() override; + gfx::NativeView GetParentView() override; + std::string GetAppLocale() override; private: int render_process_id_;