VirtualBox

Ignore:
Timestamp:
Apr 4, 2010 2:16:32 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59682
Message:

*: scm cleans up whitespace and adds a new line at the end of ApplianceimplPrivate.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/NATEngineImpl.cpp

    r27875 r27976  
    108108void NATEngine::FinalRelease()
    109109{
    110     uninit();   
     110    uninit();
    111111}
    112112
     
    125125bool NATEngine::isModified()
    126126{
    127     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     127    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    128128    bool fModified = m_fModified;
    129     return fModified; 
     129    return fModified;
    130130}
    131131
     
    177177}
    178178
    179 STDMETHODIMP 
     179STDMETHODIMP
    180180NATEngine::GetNetworkSettings(ULONG *aMtu, ULONG *aSockSnd, ULONG *aSockRcv, ULONG *aTcpWndSnd, ULONG *aTcpWndRcv)
    181181{
     
    198198}
    199199
    200 STDMETHODIMP 
     200STDMETHODIMP
    201201NATEngine::SetNetworkSettings(ULONG aMtu, ULONG aSockSnd, ULONG aSockRcv, ULONG aTcpWndSnd, ULONG aTcpWndRcv)
    202202{
     
    245245    {
    246246        settings::NATRule r = it->second;
    247         Utf8Str utf = Utf8StrFmt("%s,%d,%s,%d,%s,%d", r.strName.raw(), r.u32Proto, 
     247        Utf8Str utf = Utf8StrFmt("%s,%d,%s,%d,%s,%d", r.strName.raw(), r.u32Proto,
    248248                        r.strHostIP.raw(), r.u16HostPort, r.strGuestIP.raw(), r.u16GuestPort);
    249249        utf.cloneTo(&sf[i]);
     
    254254
    255255
    256 STDMETHODIMP 
     256STDMETHODIMP
    257257NATEngine::AddRedirect(IN_BSTR aName, NATProtocol_T aProto, IN_BSTR aBindIp, USHORT aHostPort, IN_BSTR aGuestIP, USHORT aGuestPort)
    258258{
     
    262262
    263263    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    264     Utf8Str name = aName; 
     264    Utf8Str name = aName;
    265265    settings::NATRule r;
    266266    if (name.isEmpty())
     
    292292}
    293293
    294 STDMETHODIMP 
     294STDMETHODIMP
    295295NATEngine::RemoveRedirect(IN_BSTR aName)
    296296{
     
    300300    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    301301    Utf8Str rule;
    302     NATRuleMap::iterator it = mNATRules.find(aName); 
     302    NATRuleMap::iterator it = mNATRules.find(aName);
    303303    if (it == mNATRules.end())
    304304        return E_INVALIDARG;
     
    333333    /* port forwarding */
    334334    mNATRules.clear();
    335     for (settings::NATRuleList::const_iterator it = data.llRules.begin(); 
     335    for (settings::NATRuleList::const_iterator it = data.llRules.begin();
    336336        it != data.llRules.end(); ++it)
    337337    {
     
    366366    data.fDnsUseHostResolver = mData->mDnsUseHostResolver;
    367367
    368     for (NATRuleMap::iterator it = mNATRules.begin(); 
     368    for (NATRuleMap::iterator it = mNATRules.begin();
    369369        it != mNATRules.end(); ++it)
    370370        data.llRules.push_back(it->second);
     
    379379    AutoCaller autoCaller(this);
    380380    AssertComRCReturnRC (autoCaller.rc());
    381     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     381    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    382382    if (Bstr(mData->mNetwork) != aNetwork)
    383383    {
     
    406406}
    407407
    408 STDMETHODIMP 
     408STDMETHODIMP
    409409NATEngine::COMSETTER(HostIP) (IN_BSTR aBindIP)
    410410{
    411411    AutoCaller autoCaller(this);
    412412    AssertComRCReturnRC (autoCaller.rc());
    413     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     413    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    414414    if (Bstr(mData->mBindIP) != aBindIP)
    415415    {
     
    438438    AutoCaller autoCaller(this);
    439439    AssertComRCReturnRC (autoCaller.rc());
    440     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     440    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    441441    if (Bstr(mData->mTftpPrefix) != aTftpPrefix)
    442442    {
     
    469469    AutoCaller autoCaller(this);
    470470    AssertComRCReturnRC (autoCaller.rc());
    471     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     471    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    472472    if (Bstr(mData->mTftpBootFile) != aTftpBootFile)
    473473    {
     
    500500    AutoCaller autoCaller(this);
    501501    AssertComRCReturnRC (autoCaller.rc());
    502     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     502    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    503503    if (Bstr(mData->mTftpNextServer) != aTftpNextServer)
    504504    {
     
    531531    AutoCaller autoCaller(this);
    532532    AssertComRCReturnRC (autoCaller.rc());
    533     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
    534    
     533    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     534
    535535    if (mData->mDnsPassDomain != aDnsPassDomain)
    536536    {
     
    557557    AutoCaller autoCaller(this);
    558558    AssertComRCReturnRC (autoCaller.rc());
    559     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     559    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    560560
    561561    if (mData->mDnsProxy != aDnsProxy)
     
    583583    AutoCaller autoCaller(this);
    584584    AssertComRCReturnRC (autoCaller.rc());
    585     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 
     585    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    586586    *aDnsUseHostResolver = mData->mDnsUseHostResolver;
    587587    return S_OK;
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