Changeset 29863 in vbox
- Timestamp:
- May 28, 2010 1:33:59 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
-
ProgressImpl.cpp (modified) (2 diffs)
-
include/ProgressImpl.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ProgressImpl.cpp
r28800 r29863 1149 1149 1150 1150 /** 1151 * Wrapper around Progress:notifyCompleteV. 1152 */ 1153 HRESULT Progress::notifyComplete(HRESULT aResultCode, 1154 const GUID &aIID, 1155 const Bstr &aComponent, 1156 const char *aText, 1157 ...) 1158 { 1159 va_list va; 1160 va_start(va, aText); 1161 HRESULT hrc = notifyCompleteV(aResultCode, aIID, aComponent, aText, va); 1162 va_end(va); 1163 return hrc; 1164 } 1165 1166 /** 1151 1167 * Marks the operation as complete and attaches full error info. 1152 1168 * … … 1159 1175 * @param aText Error message (must not be null), an RTStrPrintf-like 1160 1176 * format string in UTF-8 encoding. 1161 * @param ... List of arguments for the format string. 1162 */ 1163 HRESULT Progress::notifyComplete(HRESULT aResultCode, 1164 const GUID &aIID, 1165 const Bstr &aComponent, 1166 const char *aText, 1167 ...) 1168 { 1169 va_list args; 1170 va_start(args, aText); 1171 Utf8Str text = Utf8StrFmtVA(aText, args); 1172 va_end (args); 1177 * @param va List of arguments for the format string. 1178 */ 1179 HRESULT Progress::notifyCompleteV(HRESULT aResultCode, 1180 const GUID &aIID, 1181 const Bstr &aComponent, 1182 const char *aText, 1183 va_list va) 1184 { 1185 Utf8Str text = Utf8StrFmtVA(aText, va); 1173 1186 1174 1187 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/include/ProgressImpl.h
r28800 r29863 261 261 const GUID &aIID, 262 262 const Bstr &aComponent, 263 const char *aText, ...); 263 const char *aText, 264 ...); 265 HRESULT notifyCompleteV(HRESULT aResultCode, 266 const GUID &aIID, 267 const Bstr &aComponent, 268 const char *aText, 269 va_list va); 264 270 bool notifyPointOfNoReturn(void); 265 271
Note:
See TracChangeset
for help on using the changeset viewer.

