- Timestamp:
- Feb 25, 2014 4:37:29 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92455
- Location:
- trunk/src/VBox/NetworkServices/DHCP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/Config.cpp
r50213 r50587 144 144 std::string m_domainName; 145 145 VecClient m_clients; 146 std::stringm_leaseStorageFilename;146 com::Utf8Str m_leaseStorageFilename; 147 147 bool fFileExists; 148 148 }; … … 187 187 * </Leases> 188 188 */ 189 int ConfigurationManager::loadFromFile(const std::string& leaseStorageFileName)189 int ConfigurationManager::loadFromFile(const com::Utf8Str& leaseStorageFileName) 190 190 { 191 191 m->m_leaseStorageFilename = leaseStorageFileName; … … 250 250 int ConfigurationManager::saveToFile() 251 251 { 252 if (m->m_leaseStorageFilename. empty())252 if (m->m_leaseStorageFilename.isEmpty()) 253 253 return VINF_SUCCESS; 254 254 -
trunk/src/VBox/NetworkServices/DHCP/Config.h
r50213 r50587 21 21 #include <iprt/asm-math.h> 22 22 #include <iprt/cpp/utils.h> 23 #include <VBox/com/string.h> 23 24 24 25 #include "../NetLib/cpp/utils.h" … … 427 428 static int extractRequestList(PCRTNETBOOTP pDhcpMsg, size_t cbDhcpMsg, RawOption& rawOpt); 428 429 429 int loadFromFile(const std::string&);430 int loadFromFile(const com::Utf8Str&); 430 431 int saveToFile(); 431 432 /** -
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r50213 r50587 538 538 com::Bstr bstr; 539 539 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()); 542 542 confManager->loadFromFile(strXmlLeaseFile); 543 543
Note:
See TracChangeset
for help on using the changeset viewer.