Changeset 92876 in vbox
- Timestamp:
- Dec 12, 2021 3:00:02 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148824
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestSessionImpl.h
r92627 r92876 242 242 enum SESSIONOBJECTTYPE 243 243 { 244 /** @todo r=bird: The tradition is to start at = 1, leaving 0 for invalid or 245 * unused to catch uninitialized data. You do not number the other enum values. 246 * The 32BIT_HACK is only needed for externally visible stuff that might be used 247 * by with different compiler options. 248 * 249 * As noted elsewhere already, SESSIONOBJECTTYPE_ANONYMOUS isn't used 250 * anywhere can be removed till such time as it is needed. Try to not think 251 * too far ahead but if you do, please leave some more useful clues that 252 * "Anonymous object" about the intent. */ 244 253 /** Anonymous object. */ 245 254 SESSIONOBJECTTYPE_ANONYMOUS = 0, … … 263 272 /** The object type. */ 264 273 SESSIONOBJECTTYPE enmType; 265 /** Weak pointer to the object itself. */ 274 /** Weak pointer to the object itself. 275 * Is NULL for SESSIONOBJECTTYPE_SESSION because GuestSession doesn't 276 * inherit from GuestObject. */ 266 277 GuestObject *pObject; 267 278 }; … … 269 280 /** Map containing all objects bound to a guest session. 270 281 * The key specifies the (global) context ID. */ 271 typedef std::map 282 typedef std::map<uint32_t, SessionObject> SessionObjects; 272 283 273 284 public: -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r92866 r92876 1249 1249 pCtxCb->uProtocol = mData.mProtocolVersion; 1250 1250 1251 /** @todo r=bird: What is the meaning of this secondary lookup? You've got the 1252 * object pointer (except for SESSION where it's NULL because GuestSession 1253 * doesn't inherit from GuestObject), and can just use the type to upcast it to 1254 * grab a reference then call i_callbackDispatcher. 1255 * 1256 * Also, SESSIONOBJECTTYPE_ANONYMOUS is not used to remove it till needed. 1257 * Don't think too far ahead, and when you do, please express why you think it 1258 * is needed (the documentation of SESSIONOBJECTTYPE_ANONYMOUS is only repeating 1259 * the obvious and not enlightening as to why you though it might come in 1260 * useful). 1261 */ 1251 1262 switch (itObjs->second.enmType) 1252 1263 {
Note:
See TracChangeset
for help on using the changeset viewer.