VirtualBox

Changeset 75279 in vbox


Ignore:
Timestamp:
Nov 6, 2018 12:37:11 PM (6 years ago)
Author:
vboxsync
Message:

Capturing: Use uint32_t as internal screen settings screen ID.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/settings.h

    r75260 r75279  
    549549
    550550/** Map for keeping settings per virtual screen. */
    551 typedef std::map<unsigned long, CaptureScreenSettings> CaptureScreenMap;
     551typedef std::map<uint32_t, CaptureScreenSettings> CaptureScreenMap;
    552552
    553553/**
  • trunk/src/VBox/Main/include/CaptureScreenSettingsImpl.h

    r75269 r75279  
    3939
    4040    // public initializer/uninitializer for internal purposes only
    41     HRESULT init(Machine *aParent, unsigned long uScreenId, const settings::CaptureScreenSettings& data);
     41    HRESULT init(Machine *aParent, uint32_t uScreenId, const settings::CaptureScreenSettings& data);
    4242    HRESULT init(Machine *aParent, CaptureScreenSettings *that);
    4343    HRESULT initCopy(Machine *aParent, CaptureScreenSettings *that);
  • trunk/src/VBox/Main/include/CaptureSettingsImpl.h

    r75260 r75279  
    6868
    6969    /** Map of screen settings objects. The key specifies the screen ID. */
    70     typedef std::map <ULONG, ComObjPtr<CaptureScreenSettings> > CaptureScreenSettingsMap;
     70    typedef std::map <uint32_t, ComObjPtr<CaptureScreenSettings> > CaptureScreenSettingsMap;
    7171
    7272    struct Data;
  • trunk/src/VBox/Main/src-server/CaptureScreenSettingsImpl.cpp

    r75277 r75279  
    4343    Machine * const                  pMachine;
    4444    ComObjPtr<CaptureScreenSettings> pPeer;
    45     unsigned long                    uScreenId;
     45    uint32_t                         uScreenId;
    4646
    4747    // use the XML settings structure in the members for simplicity
     
    7373 * @returns COM result indicator
    7474 */
    75 HRESULT CaptureScreenSettings::init(Machine *aParent, unsigned long uScreenId, const settings::CaptureScreenSettings &data)
     75HRESULT CaptureScreenSettings::init(Machine *aParent, uint32_t uScreenId, const settings::CaptureScreenSettings& data)
    7676{
    7777    LogFlowThisFuncEnter();
  • trunk/src/VBox/Main/src-server/CaptureSettingsImpl.cpp

    r75264 r75279  
    292292    HRESULT rc = S_OK;
    293293
     294    m->mapScreenSettings.clear();
     295
    294296    settings::CaptureScreenMap::const_iterator itScreen = data.mapScreens.begin();
    295297    while (itScreen != data.mapScreens.end())
     
    303305        if (FAILED(rc))
    304306            break;
     307
     308        m->mapScreenSettings[itScreen->first] = captureScreenSettings;
    305309
    306310        ++itScreen;
  • trunk/src/VBox/Main/xml/Settings.cpp

    r75261 r75279  
    24792479
    24802480    CaptureScreenSettings screenSettings; /* Apply default settings. */
    2481     for (unsigned long l = 0; l < SchemaDefs::MaxGuestMonitors; l++)
     2481    for (uint32_t l = 0; l < SchemaDefs::MaxGuestMonitors; l++)
    24822482    {
    24832483        mapScreens[l] = screenSettings;
     
    25172517
    25182518    CaptureScreenMap::const_iterator itScreen = mapScreens.begin();
    2519     unsigned long i = 0;
     2519    uint32_t i = 0;
    25202520    while (itScreen != mapScreens.end())
    25212521    {
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