VirtualBox

Changeset 54347 in vbox


Ignore:
Timestamp:
Feb 20, 2015 10:43:16 PM (10 years ago)
Author:
vboxsync
Message:

Main/DHCPServerImpl: cosmetic - be consistent in using plural "aValues".

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DHCPServerImpl.h

    r54314 r54347  
    110110    HRESULT getVmSlotOptions(const com::Utf8Str &aVmName,
    111111                             LONG aSlot,
    112                              std::vector<com::Utf8Str> &aValue);
     112                             std::vector<com::Utf8Str> &aValues);
    113113
    114114    // Wrapped IDHCPServer Methods
  • trunk/src/VBox/Main/src-server/DHCPServerImpl.cpp

    r54314 r54347  
    286286
    287287
    288 HRESULT DHCPServer::getGlobalOptions(std::vector<com::Utf8Str> &aValue)
    289 {
    290     AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    291     aValue.resize(m->GlobalDhcpOptions.size());
     288HRESULT DHCPServer::getGlobalOptions(std::vector<com::Utf8Str> &aValues)
     289{
     290    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     291    aValues.resize(m->GlobalDhcpOptions.size());
    292292    DhcpOptionMap::const_iterator it;
    293293    size_t i = 0;
     
    299299        // XXX: TODO: factor out and share with getVmSlotOptions()
    300300        if (OptValue.encoding == DhcpOptValue::LEGACY)
    301             aValue[i] = Utf8StrFmt("%d:%s", OptCode, OptValue.text.c_str());
     301            aValues[i] = Utf8StrFmt("%d:%s", OptCode, OptValue.text.c_str());
    302302    }
    303303
     
    305305}
    306306
    307 HRESULT DHCPServer::getVmConfigs(std::vector<com::Utf8Str> &aValue)
    308 {
    309     AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    310     aValue.resize(m->VmSlot2Options.size());
     307HRESULT DHCPServer::getVmConfigs(std::vector<com::Utf8Str> &aValues)
     308{
     309    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     310    aValues.resize(m->VmSlot2Options.size());
    311311    VmSlot2OptionsMap::const_iterator it;
    312312    size_t i = 0;
    313313    for (it = m->VmSlot2Options.begin(); it != m->VmSlot2Options.end(); ++it, ++i)
    314314    {
    315         aValue[i] = Utf8StrFmt("[%s]:%d", it->first.VmName.c_str(), it->first.Slot);
     315        aValues[i] = Utf8StrFmt("[%s]:%d", it->first.VmName.c_str(), it->first.Slot);
    316316    }
    317317
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