VirtualBox

Ignore:
Timestamp:
Jan 24, 2014 8:23:12 AM (11 years ago)
Author:
vboxsync
Message:

spaces

Location:
trunk/src/VBox/NetworkServices/NetLib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NetLib/ComHostUtils.cpp

    r49830 r50213  
    122122 * variant but it's C++11.
    123123 */
    124 int hostDnsServers(const ComHostPtr& host, const RTNETADDRIPV4& networkid, 
     124int hostDnsServers(const ComHostPtr& host, const RTNETADDRIPV4& networkid,
    125125                   /*const*/ AddressToOffsetMapping& mapping, AddressList& servers)
    126126{
     
    166166
    167167    ComBstrArray strs;
    168     if (SUCCEEDED(host->COMGETTER(SearchStrings)(ComSafeArrayAsOutParam(strs)))) 
     168    if (SUCCEEDED(host->COMGETTER(SearchStrings)(ComSafeArrayAsOutParam(strs))))
    169169    {
    170170        for (unsigned int i = 0; i < strs.size(); ++i)
     
    193193
    194194
    195 int createNatListener(ComNatListenerPtr& listener, const ComVirtualBoxPtr& vboxptr, 
     195int createNatListener(ComNatListenerPtr& listener, const ComVirtualBoxPtr& vboxptr,
    196196                      NATNetworkEventAdapter *adapter, /* const */ ComEventTypeArray& events)
    197197{
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.cpp

    r49842 r50213  
    726726{
    727727    AssertMsgReturn(isMainNeeded(), ("It's expected that we need Main"), VERR_INTERNAL_ERROR);
    728        
     728
    729729    /* start receiving thread */
    730730    int rc = RTThreadCreate(&m->m_hThrRecv, /* thread handle*/
     
    743743    {
    744744        m->m_EventQ->processEventQueue(0);
    745            
     745
    746746        if (m->fShutdown)
    747747            break;
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.h

    r49842 r50213  
    5757};
    5858
    59 # ifndef BASE_SERVICES_ONLY 
     59# ifndef BASE_SERVICES_ONLY
    6060class VBoxNetBaseService: public VBoxNetHlpUDPService, public VBoxNetLockee
    6161{
  • trunk/src/VBox/NetworkServices/NetLib/shared_ptr.h

    r49339 r50213  
    33
    44#ifdef __cplusplus
    5 template<typename T> 
     5template<typename T>
    66class SharedPtr
    77{
    8     struct imp 
     8    struct imp
    99    {
    1010        imp(T *pTrg = NULL, int cnt = 1): ptr(pTrg),refcnt(cnt){}
     
    1515    };
    1616
    17    
     17
    1818    public:
    1919    SharedPtr(T *t = NULL):p(NULL)
     
    2121        p = new imp(t);
    2222    }
    23    
     23
    2424    ~SharedPtr()
    2525    {
     
    4040    {
    4141        if (p == rhs.p) return *this;
    42        
     42
    4343        p->refcnt--;
    44         if (p->refcnt == 0) 
     44        if (p->refcnt == 0)
    4545            delete p;
    4646
     
    5757    }
    5858
    59    
     59
    6060    T *operator->()
    6161    {
     
    6363    }
    6464
    65    
     65
    6666    const T*operator->() const
    6767    {
     
    7979};
    8080#endif
     81
    8182#endif
  • trunk/src/VBox/NetworkServices/NetLib/utils.h

    r49825 r50213  
    3333typedef std::map<RTNETADDRIPV4, int> AddressToOffsetMapping;
    3434
    35  
     35
    3636inline bool isDhcpRequired(const ComNatPtr& nat)
    3737{
     
    3939    if (FAILED(nat->COMGETTER(NeedDhcpServer)(&fNeedDhcpServer)))
    4040        return false;
    41    
     41
    4242    return fNeedDhcpServer;
    4343}
     
    4949                                                          dhcp.asOutParam());
    5050    AssertComRCReturn(hrc, VERR_NOT_FOUND);
    51    
     51
    5252    return VINF_SUCCESS;
    5353}
     
    6060
    6161    AssertComRCReturn(hrc, VERR_NOT_FOUND);
    62    
     62
    6363    return VINF_SUCCESS;
    6464}
     
    120120typedef ListenerImpl<NATNetworkListener, NATNetworkEventAdapter*> NATNetworkListenerImpl;
    121121
    122 # if VBOX_WITH_XPCOM 
     122# if VBOX_WITH_XPCOM
    123123class NS_CLASSINFO_NAME(NATNetworkListenerImpl);
    124124# endif
     
    127127typedef com::SafeArray<VBoxEventType_T> ComEventTypeArray;
    128128
    129 /* XXX: const is commented out because of compilation erro on Windows host, but it's intended that this function 
     129/* XXX: const is commented out because of compilation erro on Windows host, but it's intended that this function
    130130 isn't modify event type array */
    131 int createNatListener(ComNatListenerPtr& listener, const ComVirtualBoxPtr& vboxptr, 
     131int createNatListener(ComNatListenerPtr& listener, const ComVirtualBoxPtr& vboxptr,
    132132                      NATNetworkEventAdapter *adapter, /* const */ ComEventTypeArray& events);
    133133#endif
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