summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/NATNetworkImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/src-server/NATNetworkImpl.cpp')
-rw-r--r--src/VBox/Main/src-server/NATNetworkImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VBox/Main/src-server/NATNetworkImpl.cpp b/src/VBox/Main/src-server/NATNetworkImpl.cpp
index c419420fb..653272503 100644
--- a/src/VBox/Main/src-server/NATNetworkImpl.cpp
+++ b/src/VBox/Main/src-server/NATNetworkImpl.cpp
@@ -154,7 +154,7 @@ HRESULT NATNetwork::init(VirtualBox *aVirtualBox, IN_BSTR aName)
HRESULT hrc = unconst(m->pEventSource).createObject();
if (FAILED(hrc)) throw hrc;
- hrc = m->pEventSource->init(static_cast<INATNetwork *>(this));
+ hrc = m->pEventSource->init();
if (FAILED(hrc)) throw hrc;
/* Confirm a successful initialization */
@@ -209,7 +209,7 @@ HRESULT NATNetwork::init(VirtualBox *aVirtualBox,
HRESULT hrc = unconst(m->pEventSource).createObject();
if (FAILED(hrc)) throw hrc;
- hrc = m->pEventSource->init(static_cast<INATNetwork *>(this));
+ hrc = m->pEventSource->init();
if (FAILED(hrc)) throw hrc;
autoInitSpan.setSucceeded();