VirtualBox

Changeset 92876 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Dec 12, 2021 3:00:02 AM (3 years ago)
Author:
vboxsync
Message:

Main/GuestSessionImpl: Comment update, two todos. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r92627 r92876  
    242242    enum SESSIONOBJECTTYPE
    243243    {
     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. */
    244253        /** Anonymous object. */
    245254        SESSIONOBJECTTYPE_ANONYMOUS  = 0,
     
    263272        /** The object type. */
    264273        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. */
    266277        GuestObject      *pObject;
    267278    };
     
    269280    /** Map containing all objects bound to a guest session.
    270281     *  The key specifies the (global) context ID. */
    271     typedef std::map <uint32_t, SessionObject> SessionObjects;
     282    typedef std::map<uint32_t, SessionObject> SessionObjects;
    272283
    273284public:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette