Changeset 76592 in vbox for trunk/src/VBox/Main/src-client/xpcom
- Timestamp:
- Jan 1, 2019 8:13:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/xpcom/module.cpp
r76553 r76592 1 1 /* $Id$ */ 2 2 /** @file 3 *4 3 * XPCOM module implementation functions 5 4 */ … … 16 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 17 16 */ 17 18 #define LOG_GROUP LOG_GROUP_MAIN 18 19 19 20 /* Make sure all the stdint.h macros are included - must come first! */ … … 34 35 #include "RemoteUSBDeviceImpl.h" 35 36 #include "USBDeviceImpl.h" 36 37 #include "Logging.h"38 37 39 38 // XPCOM glue code unfolding … … 70 69 instance = 0; 71 70 } 71 72 72 static nsresult GetInstance(VirtualBoxClient **inst) 73 73 { … … 76 76 { 77 77 instance = new VirtualBoxClientClassFactory(); 78 if (instance) { 78 if (instance) 79 { 79 80 instance->AddRef(); // protect FinalConstruct() 80 81 rv = instance->FinalConstruct(); … … 83 84 else 84 85 instance->AddRef(); // self-reference 85 } else { 86 } 87 else 88 { 86 89 rv = NS_ERROR_OUT_OF_MEMORY; 87 90 } 88 } else { 91 } 92 else 93 { 89 94 instance->AddRef(); 90 95 } … … 92 97 return rv; 93 98 } 99 94 100 static nsresult FactoryDestructor() 95 101 {
Note:
See TracChangeset
for help on using the changeset viewer.