Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: base/mac/scoped_ioobject.h

Issue 9845017: Fix a few warnings that -Wnull-conversion of a future clang will complain about. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/scoped_ioobject.h
diff --git a/base/mac/scoped_ioobject.h b/base/mac/scoped_ioobject.h
index d5cb90cf6e1641e9547550c350b982d1f79e1503..f389cc040324c2f5c8f70df4aff57bb8315fc493 100644
--- a/base/mac/scoped_ioobject.h
+++ b/base/mac/scoped_ioobject.h
@@ -20,7 +20,7 @@ class ScopedIOObject {
public:
typedef IOT element_type;
- explicit ScopedIOObject(IOT object = NULL)
+ explicit ScopedIOObject(IOT object = IO_OBJECT_NULL)
: object_(object) {
}
@@ -29,7 +29,7 @@ class ScopedIOObject {
IOObjectRelease(object_);
}
- void reset(IOT object = NULL) {
+ void reset(IOT object = IO_OBJECT_NULL) {
if (object_)
IOObjectRelease(object_);
object_ = object;
@@ -59,7 +59,7 @@ class ScopedIOObject {
IOT release() WARN_UNUSED_RESULT {
IOT temp = object_;
- object_ = NULL;
+ object_ = IO_OBJECT_NULL;
return temp;
}
« no previous file with comments | « no previous file | base/process_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698