VirtualBox

Changeset 50587 in vbox for trunk/src


Ignore:
Timestamp:
Feb 25, 2014 4:37:29 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92455
Message:

NetworkServices/DHCP: use Utf8Str

Location:
trunk/src/VBox/NetworkServices/DHCP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/Config.cpp

    r50213 r50587  
    144144    std::string          m_domainName;
    145145    VecClient            m_clients;
    146     std::string          m_leaseStorageFilename;
     146    com::Utf8Str         m_leaseStorageFilename;
    147147    bool                 fFileExists;
    148148};
     
    187187 * </Leases>
    188188 */
    189 int ConfigurationManager::loadFromFile(const std::string& leaseStorageFileName)
     189int ConfigurationManager::loadFromFile(const com::Utf8Str& leaseStorageFileName)
    190190{
    191191    m->m_leaseStorageFilename = leaseStorageFileName;
     
    250250int ConfigurationManager::saveToFile()
    251251{
    252     if (m->m_leaseStorageFilename.empty())
     252    if (m->m_leaseStorageFilename.isEmpty())
    253253        return VINF_SUCCESS;
    254254
  • trunk/src/VBox/NetworkServices/DHCP/Config.h

    r50213 r50587  
    2121#include <iprt/asm-math.h>
    2222#include <iprt/cpp/utils.h>
     23#include <VBox/com/string.h>
    2324
    2425#include "../NetLib/cpp/utils.h"
     
    427428    static int extractRequestList(PCRTNETBOOTP pDhcpMsg, size_t cbDhcpMsg, RawOption& rawOpt);
    428429
    429     int loadFromFile(const std::string&);
     430    int loadFromFile(const com::Utf8Str&);
    430431    int saveToFile();
    431432    /**
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r50213 r50587  
    538538    com::Bstr bstr;
    539539    hrc = virtualbox->COMGETTER(HomeFolder)(bstr.asOutParam());
    540     std::string strXmlLeaseFile(com::Utf8StrFmt("%ls%c%s.leases",
    541                                                 bstr.raw(), RTPATH_DELIMITER, networkName.c_str()).c_str());
     540    com::Utf8StrFmt strXmlLeaseFile("%ls%c%s.leases",
     541                                    bstr.raw(), RTPATH_DELIMITER, networkName.c_str());
    542542    confManager->loadFromFile(strXmlLeaseFile);
    543543
Note: See TracChangeset for help on using the changeset viewer.

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