VirtualBox

Changeset 72394 in vbox for trunk/src


Ignore:
Timestamp:
May 30, 2018 9:20:32 PM (7 years ago)
Author:
vboxsync
Message:

HostDnsService: move monitor creation to proxy init.

Location:
trunk/src/VBox/Main/src-server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostDnsService.cpp

    r69500 r72394  
    336336}
    337337
    338 void HostDnsMonitorProxy::init(const HostDnsMonitor *mon, VirtualBox* aParent)
    339 {
     338void HostDnsMonitorProxy::init(VirtualBox* aParent)
     339{
     340    const HostDnsMonitor *mon = HostDnsMonitor::getHostDnsMonitor(aParent);
     341    Assert(mon != NULL);
     342
    340343    m = new HostDnsMonitorProxy::Data(mon, aParent);
    341344    m->monitor->addMonitorProxy(this);
  • trunk/src/VBox/Main/src-server/HostDnsService.h

    r69500 r72394  
    9696    HostDnsMonitorProxy();
    9797    ~HostDnsMonitorProxy();
    98     void init(const HostDnsMonitor *aMonitor, VirtualBox *virtualbox);
     98    void init(VirtualBox *virtualbox);
    9999    void notify() const;
    100100
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r72356 r72394  
    282282    i_updateNetIfList();
    283283
    284     m->hostDnsMonitorProxy.init(HostDnsMonitor::getHostDnsMonitor(m->pParent), m->pParent);
     284    m->hostDnsMonitorProxy.init(m->pParent);
    285285
    286286#if defined(RT_OS_WINDOWS)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette