summaryrefslogtreecommitdiffstats
path: root/base/files
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-09-19 20:31:22 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-20 03:31:34 +0000
commitc041fef8226db56fcec101567c9eef0f9ce49ef5 (patch)
tree6636a4faebcdf9ba8d97ca5f96e123fd3f3121a4 /base/files
parent037fdb5001271435af339b1d165e5512004eb160 (diff)
downloadchromium_src-c041fef8226db56fcec101567c9eef0f9ce49ef5.zip
chromium_src-c041fef8226db56fcec101567c9eef0f9ce49ef5.tar.gz
chromium_src-c041fef8226db56fcec101567c9eef0f9ce49ef5.tar.bz2
Remove implicit conversions from scoped_refptr to T* in base/
This patch was generated by running the rewrite_scoped_refptr clang tool on a Mac build. BUG=110610 Review URL: https://codereview.chromium.org/584883003 Cr-Commit-Position: refs/heads/master@{#295855}
Diffstat (limited to 'base/files')
-rw-r--r--base/files/file_path_watcher_mac.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/files/file_path_watcher_mac.cc b/base/files/file_path_watcher_mac.cc
index 54ca46d..b21ba1d 100644
--- a/base/files/file_path_watcher_mac.cc
+++ b/base/files/file_path_watcher_mac.cc
@@ -34,13 +34,13 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
}
virtual void Cancel() OVERRIDE {
- if (impl_)
+ if (impl_.get())
impl_->Cancel();
set_cancelled();
}
virtual void CancelOnMessageLoopThread() OVERRIDE {
- if (impl_)
+ if (impl_.get())
impl_->Cancel();
set_cancelled();
}