From a44a5af115871b5be4dcfb05a421046a25ba5d73 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 12 Aug 2018 19:50:31 +0200 Subject: Add namespace to avoid name collision and crash --- src/WebRTCPeer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/WebRTCPeer.cpp') 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"); -- cgit v1.2.3