diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-12 19:50:31 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-12 19:50:31 +0200 |
commit | a44a5af115871b5be4dcfb05a421046a25ba5d73 (patch) | |
tree | b535e3b78c3bbfcdc8a61982f488630aad7d2af3 /src/WebRTCPeer.cpp | |
parent | 169252bf60c4006daedb78a3502d17da401722f6 (diff) | |
download | fork-godot-webrtc-native-a44a5af115871b5be4dcfb05a421046a25ba5d73.tar.gz fork-godot-webrtc-native-a44a5af115871b5be4dcfb05a421046a25ba5d73.tar.bz2 fork-godot-webrtc-native-a44a5af115871b5be4dcfb05a421046a25ba5d73.zip |
Add namespace to avoid name collision and crash
Diffstat (limited to 'src/WebRTCPeer.cpp')
-rw-r--r-- | src/WebRTCPeer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WebRTCPeer.cpp b/src/WebRTCPeer.cpp index 38303e1..f7572ad 100644 --- a/src/WebRTCPeer.cpp +++ b/src/WebRTCPeer.cpp @@ -1,5 +1,7 @@ #include "WebRTCPeer.hpp" +using namespace godot_webrtc; + void WebRTCPeer::set_write_mode(godot_int mode) { } @@ -64,6 +66,9 @@ void WebRTCPeer::_init() { register_interface(&interface); } +WebRTCPeer::WebRTCPeer() { +} + WebRTCPeer::~WebRTCPeer() { if (_owner) { printf("Unbinding PacketPeer interface"); |