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

Unified Diff: webrtc/base/logging.h

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 years, 10 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 | « webrtc/base/ifaddrs-android.cc ('k') | webrtc/base/logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/logging.h
diff --git a/webrtc/base/logging.h b/webrtc/base/logging.h
index 13f0b782b4d04d0c4d5a14edb5fb4565b0f26049..8f476a0215c19b2848fd65b0a9165542d001f418 100644
--- a/webrtc/base/logging.h
+++ b/webrtc/base/logging.h
@@ -139,9 +139,12 @@ class LogSink {
class LogMessage {
public:
- LogMessage(const char* file, int line, LoggingSeverity sev,
- LogErrorContext err_ctx = ERRCTX_NONE, int err = 0,
- const char* module = NULL);
+ LogMessage(const char* file,
+ int line,
+ LoggingSeverity sev,
+ LogErrorContext err_ctx = ERRCTX_NONE,
+ int err = 0,
+ const char* module = nullptr);
LogMessage(const char* file,
int line,
@@ -185,7 +188,7 @@ class LogMessage {
// GetLogToStream gets the severity for the specified stream, of if none
// is specified, the minimum stream severity.
// RemoveLogToStream removes the specified stream, without destroying it.
- static int GetLogToStream(LogSink* stream = NULL);
+ static int GetLogToStream(LogSink* stream = nullptr);
static void AddLogToStream(LogSink* stream, LoggingSeverity min_sev);
static void RemoveLogToStream(LogSink* stream);
@@ -254,7 +257,7 @@ class LogMultilineState {
};
// When possible, pass optional state variable to track various data across
-// multiple calls to LogMultiline. Otherwise, pass NULL.
+// multiple calls to LogMultiline. Otherwise, pass null.
void LogMultiline(LoggingSeverity level, const char* label, bool input,
const void* data, size_t len, bool hex_mode,
LogMultilineState* state);
@@ -351,9 +354,9 @@ inline bool LogCheckLevel(LoggingSeverity sev) {
(errno)
#endif // WEBRTC_WIN
-#define LOG_TAG(sev, tag) \
+#define LOG_TAG(sev, tag) \
LOG_SEVERITY_PRECONDITION(sev) \
- rtc::LogMessage(NULL, 0, sev, tag).stream()
+ rtc::LogMessage(nullptr, 0, sev, tag).stream()
#define PLOG(sev, err) \
LOG_ERR_EX(sev, err)
« no previous file with comments | « webrtc/base/ifaddrs-android.cc ('k') | webrtc/base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698