Changeset 103537 in vbox
- Timestamp:
- Feb 22, 2024 3:58:21 PM (9 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r103362 r103537 176 176 /* Get VirtualBox: */ 177 177 const CVirtualBox comVBox = uiCommon().virtualBox(); 178 AssertWrapperOk(comVBox);179 178 /* Get VirtualBox event source: */ 180 179 CEventSource comEventSourceVBox = comVBox.GetEventSource(); 181 Assert WrapperOk(comEventSourceVBox);180 Assert(comVBox.isOk()); 182 181 183 182 /* Enumerate all the required event-types: */ … … 189 188 /* Register event listener for VirtualBox event source: */ 190 189 comEventSourceVBox.RegisterListener(m_comEventListener, eventTypes, FALSE /* active? */); 191 Assert WrapperOk(comEventSourceVBox);190 Assert(comEventSourceVBox.isOk()); 192 191 193 192 /* Register event sources in their listeners as well: */ … … 222 221 /* Get VirtualBox: */ 223 222 const CVirtualBox comVBox = uiCommon().virtualBox(); 224 AssertWrapperOk(comVBox);225 223 /* Get VirtualBox event source: */ 226 224 CEventSource comEventSourceVBox = comVBox.GetEventSource(); 227 Assert WrapperOk(comEventSourceVBox);225 Assert(comVBox.isOk()); 228 226 229 227 /* Unregister event listener for VirtualBox event source: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r103464 r103537 1350 1350 const WId id = (WId)comMachine.ShowConsoleWindow(); 1351 1351 #endif 1352 Assert WrapperOk(comMachine);1352 Assert(comMachine.isOk()); 1353 1353 if (!comMachine.isOk()) 1354 1354 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r103339 r103537 46 46 #include "UILibraryDefs.h" 47 47 48 /* COM includes: */49 #include "COMEnums.h"50 51 48 /* Other VBox includes: */ 52 49 #include <VBox/log.h> 53 #include <VBox/com/defs.h>54 55 /* Defines: */56 #ifdef RT_STRICT57 # define AssertWrapperOk(w) AssertMsg(w.isOk(), (#w " is not okay (RC=0x%08X)", w.lastRC()))58 # define AssertWrapperOkMsg(w, m) AssertMsg(w.isOk(), (#w ": " m " (RC=0x%08X)", w.lastRC()))59 #else60 # define AssertWrapperOk(w) do {} while (0)61 # define AssertWrapperOkMsg(w, m) do {} while (0)62 #endif63 50 64 51 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r101560 r103537 2093 2093 { 2094 2094 CVirtualBox vbox = uiCommon().virtualBox(); 2095 QString strFullVersion; 2096 if (uiCommon().brandingIsActive()) 2097 { 2098 strFullVersion = QString("%1 r%2 - %3").arg(vbox.GetVersion()) 2099 .arg(vbox.GetRevision()) 2100 .arg(uiCommon().brandingGetKey("Name")); 2101 } 2102 else 2103 { 2104 strFullVersion = QString("%1 r%2").arg(vbox.GetVersion()) 2105 .arg(vbox.GetRevision()); 2106 } 2107 AssertWrapperOk(vbox); 2108 2095 const QString strFullVersion = uiCommon().brandingIsActive() 2096 ? QString("%1 r%2 - %3").arg(vbox.GetVersion()) 2097 .arg(vbox.GetRevision()) 2098 .arg(uiCommon().brandingGetKey("Name")) 2099 : QString("%1 r%2").arg(vbox.GetVersion()) 2100 .arg(vbox.GetRevision()); 2109 2101 (new VBoxAboutDlg(windowManager().mainWindowShown(), strFullVersion))->show(); 2110 2102 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIProgressEventHandler.cpp
r98103 r103537 65 65 /* Get CProgress event source: */ 66 66 CEventSource comEventSourceProgress = m_comProgress.GetEventSource(); 67 Assert WrapperOk(comEventSourceProgress);67 Assert(m_comProgress.isOk()); 68 68 69 69 /* Enumerate all the required event-types: */ … … 75 75 /* Register event listener for CProgress event source: */ 76 76 comEventSourceProgress.RegisterListener(m_comEventListener, eventTypes, FALSE /* active? */); 77 Assert WrapperOk(comEventSourceProgress);77 Assert(comEventSourceProgress.isOk()); 78 78 79 79 /* Register event sources in their listeners as well: */ … … 113 113 /* Get CProgress event source: */ 114 114 CEventSource comEventSourceProgress = m_comProgress.GetEventSource(); 115 Assert WrapperOk(comEventSourceProgress);115 Assert(m_comProgress.isOk()); 116 116 117 117 /* Unregister event listener for CProgress event source: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxClientEventHandler.cpp
r98103 r103537 119 119 /* Get VirtualBoxClient: */ 120 120 const CVirtualBoxClient comVBoxClient = uiCommon().virtualBoxClient(); 121 AssertWrapperOk(comVBoxClient);122 121 /* Get VirtualBoxClient event source: */ 123 122 m_comEventSource = comVBoxClient.GetEventSource(); 124 Assert WrapperOk(m_comEventSource);123 Assert(comVBoxClient.isOk()); 125 124 126 125 /* Enumerate all the required event-types: */ … … 131 130 /* Register event listener for event source aggregator: */ 132 131 m_comEventSource.RegisterListener(m_comEventListener, eventTypes, FALSE /* active? */); 133 Assert WrapperOk(m_comEventSource);132 Assert(m_comEventSource.isOk()); 134 133 135 134 /* Register event sources in their listeners as well: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.cpp
r100737 r103537 168 168 /* Get VirtualBox: */ 169 169 const CVirtualBox comVBox = uiCommon().virtualBox(); 170 AssertWrapperOk(comVBox);171 170 /* Get VirtualBox event source: */ 172 171 m_comEventSource = comVBox.GetEventSource(); 173 Assert WrapperOk(m_comEventSource);172 Assert(comVBox.isOk()); 174 173 175 174 /* Enumerate all the required event-types: */ … … 198 197 /* Register event listener for event source aggregator: */ 199 198 m_comEventSource.RegisterListener(m_comEventListener, eventTypes, FALSE /* active? */); 200 Assert WrapperOk(m_comEventSource);199 Assert(m_comEventSource.isOk()); 201 200 202 201 /* Register event sources in their listeners as well: */ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlWidget.cpp
r98875 r103537 442 442 /* Get CProgress event source: */ 443 443 CEventSource comEventSource = m_comGuest.GetEventSource(); 444 Assert WrapperOk(comEventSource);444 Assert(m_comGuest.isOk()); 445 445 446 446 /* Enumerate all the required event-types: */ … … 448 448 eventTypes << KVBoxEventType_OnGuestSessionRegistered; 449 449 450 451 450 /* Register event listener for CProgress event source: */ 452 451 comEventSource.RegisterListener(m_comEventListener, eventTypes, FALSE /* active? */); 453 Assert WrapperOk(comEventSource);452 Assert(comEventSource.isOk()); 454 453 455 454 /* Register event sources in their listeners as well: */ … … 553 552 /* Get CProgress event source: */ 554 553 CEventSource comEventSource = m_comGuest.GetEventSource(); 555 Assert WrapperOk(comEventSource);554 Assert(m_comGuest.isOk()); 556 555 557 556 /* Unregister event listener for CProgress event source: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp
r100606 r103537 236 236 /* Register event listener for console event source: */ 237 237 comEventSourceConsole.RegisterListener(m_comEventListener, eventTypes, FALSE /* active? */); 238 Assert WrapperOk(comEventSourceConsole);238 Assert(comEventSourceConsole.isOk()); 239 239 240 240 /* Register event sources in their listeners as well: */ … … 330 330 /* Get console event source: */ 331 331 CEventSource comEventSourceConsole = comConsole.GetEventSource(); 332 Assert WrapperOk(comEventSourceConsole);332 Assert(comConsole.isOk()); 333 333 334 334 /* Unregister event listener for console event source: */
Note:
See TracChangeset
for help on using the changeset viewer.