summaryrefslogtreecommitdiff
path: root/modules/webrtc/webrtc_peer_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webrtc/webrtc_peer_connection.cpp')
-rw-r--r--modules/webrtc/webrtc_peer_connection.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/webrtc/webrtc_peer_connection.cpp b/modules/webrtc/webrtc_peer_connection.cpp
index 90c62e2495..670924bca2 100644
--- a/modules/webrtc/webrtc_peer_connection.cpp
+++ b/modules/webrtc/webrtc_peer_connection.cpp
@@ -30,17 +30,16 @@
#include "webrtc_peer_connection.h"
-WebRTCPeerConnection *(*WebRTCPeerConnection::_create)() = NULL;
+WebRTCPeerConnection *(*WebRTCPeerConnection::_create)() = nullptr;
Ref<WebRTCPeerConnection> WebRTCPeerConnection::create_ref() {
-
return create();
}
WebRTCPeerConnection *WebRTCPeerConnection::create() {
-
- if (!_create)
- return NULL;
+ if (!_create) {
+ return nullptr;
+ }
return _create();
}