From 363e754da58afc330b050cfb6da2a06e418bff97 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Tue, 23 Apr 2013 22:33:14 +0000 Subject: ui/aura: Remove unnecessary scoped_ptr ".get()" calls. Implicit testing to scoped_ptr<> was added by Addrienne (enne@) in r174057. This patch was generated by Elliot's script: $ cd ui/aura $ git ls-files | xargs sed -i -e "s/if (\(.*\)\.get())/if (\1)/g;" BUG=232084 TEST=aura_unittests TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/13845025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195926 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/aura/root_window.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/aura/root_window.cc') diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc index 968a25c..e3fccfb 100644 --- a/ui/aura/root_window.cc +++ b/ui/aura/root_window.cc @@ -467,7 +467,7 @@ void RootWindow::HoldMouseMoves() { void RootWindow::ReleaseMouseMoves() { --mouse_move_hold_count_; DCHECK_GE(mouse_move_hold_count_, 0); - if (!mouse_move_hold_count_ && held_mouse_move_.get()) { + if (!mouse_move_hold_count_ && held_mouse_move_) { // We don't want to call DispatchHeldEvents directly, because this might // be called from a deep stack while another event, in which case // dispatching another one may not be safe/expected. @@ -1106,7 +1106,7 @@ bool RootWindow::DispatchMouseEventToTarget(ui::MouseEvent* event, } void RootWindow::DispatchHeldEvents() { - if (held_repostable_event_.get()) { + if (held_repostable_event_) { if (held_repostable_event_->type() == ui::ET_MOUSE_PRESSED) { ui::MouseEvent mouse_event( static_cast(*held_repostable_event_.get())); @@ -1118,7 +1118,7 @@ void RootWindow::DispatchHeldEvents() { } held_repostable_event_.reset(); } - if (held_mouse_move_.get()) { + if (held_mouse_move_) { // If a mouse move has been synthesized, the target location is suspect, // so drop the held event. if (!synthesize_mouse_move_) -- cgit v1.1