Changeset 31539 in vbox for trunk/src/VBox/Main/webservice
- Timestamp:
- Aug 10, 2010 3:40:18 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64639
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r31231 r31539 205 205 pcszDescr = "Maximum number of worker threads to run in parallel (100)."; 206 206 break; 207 207 208 208 case 'k': 209 209 pcszDescr = "Maximum number of requests before a socket will be closed (100)."; … … 931 931 { 932 932 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 937 934 } 938 935 … … 946 943 { 947 944 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 952 946 } 953 947 … … 1163 1157 do 1164 1158 { 1165 rc = RTLdrLoad(filename. raw(), &hlibAuth);1159 rc = RTLdrLoad(filename.c_str(), &hlibAuth); 1166 1160 if (RT_FAILURE(rc)) 1167 1161 { … … 1645 1639 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 1646 1640 1647 do 1641 do 1648 1642 { 1649 1643 // WebServiceSession constructor tinkers with global MOR map and requires a write lock
Note:
See TracChangeset
for help on using the changeset viewer.