VirtualBox

Changeset 72404 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 1, 2018 12:29:26 AM (7 years ago)
Author:
vboxsync
Message:

HostDnsService: introduce a local variable to simplify future change.

File:
1 edited

Legend:

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

    r72396 r72404  
    245245void HostDnsMonitor::pollGlobalExtraData()
    246246{
     247    VirtualBox *virtualbox = m->virtualbox;
     248    if (RT_UNLIKELY(virtualbox == NULL))
     249        return;
     250
    247251    uint64_t uNow = RTTimeNanoTS();
    248     if (m->virtualbox && (uNow - m->uLastExtraDataPoll >= RT_NS_30SEC || m->uLastExtraDataPoll == 0))
     252    if (virtualbox && (uNow - m->uLastExtraDataPoll >= RT_NS_30SEC || m->uLastExtraDataPoll == 0))
    249253    {
    250254        m->uLastExtraDataPoll = uNow;
     
    255259        const com::Bstr bstrHostDNSOrderIgnoreKey("VBoxInternal2/HostDNSOrderIgnore");
    256260        com::Bstr bstrHostDNSOrderIgnore;
    257         m->virtualbox->GetExtraData(bstrHostDNSOrderIgnoreKey.raw(),
    258                                     bstrHostDNSOrderIgnore.asOutParam());
     261        virtualbox->GetExtraData(bstrHostDNSOrderIgnoreKey.raw(),
     262                                 bstrHostDNSOrderIgnore.asOutParam());
    259263        uint32_t fDNSOrderIgnore = 0;
    260264        if (bstrHostDNSOrderIgnore.isNotEmpty())
     
    278282        const com::Bstr bstrHostDNSSuffixesIgnoreKey("VBoxInternal2/HostDNSSuffixesIgnore");
    279283        com::Bstr bstrHostDNSSuffixesIgnore;
    280         m->virtualbox->GetExtraData(bstrHostDNSSuffixesIgnoreKey.raw(),
    281                                     bstrHostDNSSuffixesIgnore.asOutParam());
     284        virtualbox->GetExtraData(bstrHostDNSSuffixesIgnoreKey.raw(),
     285                                 bstrHostDNSSuffixesIgnore.asOutParam());
    282286        uint32_t fDNSSuffixesIgnore = 0;
    283287        if (bstrHostDNSSuffixesIgnore.isNotEmpty())
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