VirtualBox

Changeset 31539 in vbox for trunk/src/VBox/Main/webservice


Ignore:
Timestamp:
Aug 10, 2010 3:40:18 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64639
Message:

Main: use settings struct for machine user data; remove iprt::MiniString::raw() and change all occurences to c_str()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r31231 r31539  
    205205                pcszDescr = "Maximum number of worker threads to run in parallel (100).";
    206206                break;
    207                
     207
    208208            case 'k':
    209209                pcszDescr = "Maximum number of requests before a socket will be closed (100).";
     
    931931{
    932932    com::Utf8Str ustr(bstr);
    933     const char *pcsz;
    934     if ((pcsz = ustr.raw()))
    935         return pcsz;
    936     return "";
     933    return ustr.c_str();        // @todo r=dj since the length is known, we can probably use a better std::string allocator
    937934}
    938935
     
    946943{
    947944    com::Utf8Str ustr(uuid.toString());
    948     const char *pcsz;
    949     if ((pcsz = ustr.raw()))
    950         return pcsz;
    951     return "";
     945    return ustr.c_str();        // @todo r=dj since the length is known, we can probably use a better std::string allocator
    952946}
    953947
     
    11631157            do
    11641158            {
    1165                 rc = RTLdrLoad(filename.raw(), &hlibAuth);
     1159                rc = RTLdrLoad(filename.c_str(), &hlibAuth);
    11661160                if (RT_FAILURE(rc))
    11671161                {
     
    16451639    WEBDEBUG(("-- entering %s\n", __FUNCTION__));
    16461640
    1647     do 
     1641    do
    16481642    {
    16491643        // WebServiceSession constructor tinkers with global MOR map and requires a write lock
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