Changeset 49610 in vbox
- Timestamp:
- Nov 21, 2013 4:01:00 PM (11 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r49504 r49610 57 57 HRESULT init(GuestFile *pFile) 58 58 { 59 AssertPtrReturn(pFile, E_POINTER); 59 60 mFile = pFile; 60 61 return S_OK; … … 63 64 void uninit(void) 64 65 { 65 mFile .setNull();66 mFile = NULL; 66 67 } 67 68 … … 75 76 case VBoxEventType_OnGuestFileWrite: 76 77 { 77 Assert (!mFile.isNull());78 AssertPtrReturn(mFile, E_POINTER); 78 79 int rc2 = mFile->signalWaitEvent(aType, aEvent); 79 80 #ifdef DEBUG_andy … … 94 95 private: 95 96 96 ComObjPtr<GuestFile>mFile;97 GuestFile *mFile; 97 98 }; 98 99 typedef ListenerImpl<GuestFileListener, GuestFile*> GuestFileListenerImpl; … … 703 704 704 705 /** 705 * Called by IGuestSession right before this file gets removed 706 * from the public file list. 706 * Called by IGuestSession right before this file gets removed 707 * from the public file list. 707 708 */ 708 709 int GuestFile::onRemove(void) … … 714 715 int vrc = VINF_SUCCESS; 715 716 716 /* 717 /* 717 718 * Note: The event source stuff holds references to this object, 718 719 * so make sure that this is cleaned up *before* calling uninit(). -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r49570 r49610 97 97 HRESULT init(GuestProcess *pProcess) 98 98 { 99 AssertPtrReturn(pProcess, E_POINTER); 99 100 mProcess = pProcess; 100 101 return S_OK; … … 103 104 void uninit(void) 104 105 { 105 mProcess .setNull();106 mProcess = NULL; 106 107 } 107 108 … … 114 115 case VBoxEventType_OnGuestProcessOutput: 115 116 { 116 Assert (!mProcess.isNull());117 AssertPtrReturn(mProcess, E_POINTER); 117 118 int rc2 = mProcess->signalWaitEvent(aType, aEvent); 118 119 #ifdef DEBUG … … 133 134 private: 134 135 135 ComObjPtr<GuestProcess>mProcess;136 GuestProcess *mProcess; 136 137 }; 137 138 typedef ListenerImpl<GuestProcessListener, GuestProcess*> GuestProcessListenerImpl; -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r49570 r49610 97 97 HRESULT init(GuestSession *pSession) 98 98 { 99 AssertPtrReturn(pSession, E_POINTER); 99 100 mSession = pSession; 100 101 return S_OK; … … 103 104 void uninit(void) 104 105 { 105 mSession .setNull();106 mSession = NULL; 106 107 } 107 108 … … 112 113 case VBoxEventType_OnGuestSessionStateChanged: 113 114 { 114 Assert (!mSession.isNull());115 AssertPtrReturn(mSession, E_POINTER); 115 116 int rc2 = mSession->signalWaitEvent(aType, aEvent); 116 117 #ifdef DEBUG_andy … … 131 132 private: 132 133 133 ComObjPtr<GuestSession>mSession;134 GuestSession *mSession; 134 135 }; 135 136 typedef ListenerImpl<GuestSessionListener, GuestSession*> GuestSessionListenerImpl;
Note:
See TracChangeset
for help on using the changeset viewer.