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

Unified Diff: webrtc/base/socketaddress.cc

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/socketadapters.cc ('k') | webrtc/base/socketaddress_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/socketaddress.cc
diff --git a/webrtc/base/socketaddress.cc b/webrtc/base/socketaddress.cc
index 8cb53c5d57665f6d0c788640c1a08500ff016820..d931f72b21891a037d806d730cca5fc8b14c06c8 100644
--- a/webrtc/base/socketaddress.cc
+++ b/webrtc/base/socketaddress.cc
@@ -184,7 +184,7 @@ bool SocketAddress::FromString(const std::string& str) {
if (closebracket != std::string::npos) {
std::string::size_type colon = str.find(':', closebracket);
if (colon != std::string::npos && colon > closebracket) {
- SetPort(strtoul(str.substr(colon + 1).c_str(), NULL, 10));
+ SetPort(strtoul(str.substr(colon + 1).c_str(), nullptr, 10));
SetIP(str.substr(1, closebracket - 1));
} else {
return false;
@@ -194,7 +194,7 @@ bool SocketAddress::FromString(const std::string& str) {
std::string::size_type pos = str.find(':');
if (std::string::npos == pos)
return false;
- SetPort(strtoul(str.substr(pos + 1).c_str(), NULL, 10));
+ SetPort(strtoul(str.substr(pos + 1).c_str(), nullptr, 10));
SetIP(str.substr(0, pos));
}
return true;
« no previous file with comments | « webrtc/base/socketadapters.cc ('k') | webrtc/base/socketaddress_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698