Changeset 30714 in vbox for trunk/src/VBox/Main/VirtualBoxErrorInfoImpl.cpp
- Timestamp:
- Jul 7, 2010 4:20:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxErrorInfoImpl.cpp
r28800 r30714 22 22 //////////////////////////////////////////////////////////////////////////////// 23 23 24 HRESULT VirtualBoxErrorInfo::init (HRESULT aResultCode, const GUID &aIID, 25 CBSTR aComponent, CBSTR aText, 26 IVirtualBoxErrorInfo *aNext) 27 { 28 mResultCode = aResultCode; 29 mIID = aIID; 30 mComponent = aComponent; 31 mText = aText; 24 HRESULT VirtualBoxErrorInfo::init(HRESULT aResultCode, 25 const GUID &aIID, 26 const char *pcszComponent, 27 const Utf8Str &strText, 28 IVirtualBoxErrorInfo *aNext) 29 { 30 m_resultCode = aResultCode; 31 m_IID = aIID; 32 m_strComponent = pcszComponent; 33 m_strText = strText; 32 34 mNext = aNext; 33 35 … … 42 44 CheckComArgOutPointerValid(aResultCode); 43 45 44 *aResultCode = m ResultCode;46 *aResultCode = m_resultCode; 45 47 return S_OK; 46 48 } … … 50 52 CheckComArgOutPointerValid(aIID); 51 53 52 m IID.toUtf16().cloneTo(aIID);54 m_IID.toUtf16().cloneTo(aIID); 53 55 return S_OK; 54 56 } … … 58 60 CheckComArgOutPointerValid(aComponent); 59 61 60 m Component.cloneTo(aComponent);62 m_strComponent.cloneTo(aComponent); 61 63 return S_OK; 62 64 } … … 66 68 CheckComArgOutPointerValid(aText); 67 69 68 m Text.cloneTo(aText);70 m_strText.cloneTo(aText); 69 71 return S_OK; 70 72 } … … 94 96 * corresponding fields will simply remain null in this case). */ 95 97 96 m ResultCode = S_OK;97 rc = aInfo->GetGUID (mIID.asOutParam());98 m_resultCode = S_OK; 99 rc = aInfo->GetGUID(m_IID.asOutParam()); 98 100 AssertComRC (rc); 99 rc = aInfo->GetSource (mComponent.asOutParam()); 101 Bstr bstrComponent; 102 rc = aInfo->GetSource(bstrComponent.asOutParam()); 100 103 AssertComRC (rc); 101 rc = aInfo->GetDescription (mText.asOutParam()); 104 m_strComponent = bstrComponent; 105 Bstr bstrText; 106 rc = aInfo->GetDescription(bstrText.asOutParam()); 102 107 AssertComRC (rc); 108 m_strText = bstrText; 103 109 104 110 return S_OK; … … 153 159 * corresponding fields will simply remain null in this case). */ 154 160 155 rc = aInfo->GetResult(&m ResultCode);161 rc = aInfo->GetResult(&m_resultCode); 156 162 AssertComRC(rc); 157 163 … … 161 167 if (NS_SUCCEEDED(rc)) 162 168 { 163 m Text = Bstr(pszMsg);169 m_strText = pszMsg; 164 170 nsMemory::Free(pszMsg); 165 171 } 166 172 else 167 m Text.setNull();173 m_strText.setNull(); 168 174 169 175 return S_OK; … … 178 184 CheckComArgOutPointerValid(aMessage); 179 185 180 Utf8Str (mText).cloneTo(aMessage);186 m_strText.cloneTo(aMessage); 181 187 return S_OK; 182 188 }
Note:
See TracChangeset
for help on using the changeset viewer.