VirtualBox

Changeset 53722 in vbox


Ignore:
Timestamp:
Jan 4, 2015 12:27:03 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97500
Message:

Fixed some missing H()s in the graphics department. Use ptr for 'smart' pointers, not 'p'.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r53560 r53722  
    660660                                   const GraphicsControllerType_T graphicsController,
    661661                                   BusAssignmentManager *pBusMgr,
    662                                    const ComPtr<IMachine> &pMachine,
    663                                    const ComPtr<IBIOSSettings> &biosSettings,
     662                                   const ComPtr<IMachine> &ptrMachine,
     663                                   const ComPtr<IBIOSSettings> &ptrBiosSettings,
    664664                                   bool fHMEnabled);
    665665    int i_configMediumAttachment(PCFGMNODE pCtlInst,
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r53560 r53722  
    15531553         * VGA.
    15541554         */
    1555         GraphicsControllerType_T graphicsController;
    1556         hrc = pMachine->COMGETTER(GraphicsControllerType)(&graphicsController);             H();
    1557         switch (graphicsController)
     1555        GraphicsControllerType_T enmGraphicsController;
     1556        hrc = pMachine->COMGETTER(GraphicsControllerType)(&enmGraphicsController);          H();
     1557        switch (enmGraphicsController)
    15581558        {
    15591559            case GraphicsControllerType_Null:
     
    15631563            case GraphicsControllerType_VMSVGA:
    15641564#endif
    1565                 rc = i_configGraphicsController(pDevices, graphicsController, pBusMgr, pMachine, biosSettings,
     1565                rc = i_configGraphicsController(pDevices, enmGraphicsController, pBusMgr, pMachine, biosSettings,
    15661566                                                RT_BOOL(fHMEnabled));
    15671567                if (FAILED(rc))
     
    15691569                break;
    15701570            default:
    1571                 AssertMsgFailed(("Invalid graphicsController=%d\n", graphicsController));
     1571                AssertMsgFailed(("Invalid graphicsController=%d\n", enmGraphicsController));
    15721572                return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS,
    1573                                     N_("Invalid graphics controller type '%d'"), graphicsController);
     1573                                    N_("Invalid graphics controller type '%d'"), enmGraphicsController);
    15741574        }
    15751575
     
    33693369
    33703370int Console::i_configGraphicsController(PCFGMNODE pDevices,
    3371                                         const GraphicsControllerType_T graphicsController,
     3371                                        const GraphicsControllerType_T enmGraphicsController,
    33723372                                        BusAssignmentManager *pBusMgr,
    3373                                         const ComPtr<IMachine> &pMachine,
    3374                                         const ComPtr<IBIOSSettings> &biosSettings,
     3373                                        const ComPtr<IMachine> &ptrMachine,
     3374                                        const ComPtr<IBIOSSettings> &ptrBiosSettings,
    33753375                                        bool fHMEnabled)
    33763376{
     
    33913391        InsertConfigNode(pInst,    "Config", &pCfg);
    33923392        ULONG cVRamMBs;
    3393         hrc = pMachine->COMGETTER(VRAMSize)(&cVRamMBs);                                     H();
     3393        hrc = ptrMachine->COMGETTER(VRAMSize)(&cVRamMBs);                                   H();
    33943394        InsertConfigInteger(pCfg,  "VRamSize",             cVRamMBs * _1M);
    33953395        ULONG cMonitorCount;
    3396         hrc = pMachine->COMGETTER(MonitorCount)(&cMonitorCount);                            H();
     3396        hrc = ptrMachine->COMGETTER(MonitorCount)(&cMonitorCount);                          H();
    33973397        InsertConfigInteger(pCfg,  "MonitorCount",         cMonitorCount);
    33983398#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
     
    34053405
    34063406#ifdef VBOX_WITH_VMSVGA
    3407         if (graphicsController == GraphicsControllerType_VMSVGA)
     3407        if (enmGraphicsController == GraphicsControllerType_VMSVGA)
    34083408        {
    34093409            InsertConfigInteger(pCfg, "VMSVGAEnabled", true);
     
    34213421            }
    34223422            BOOL f3DEnabled;
    3423             pMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled);
     3423            hrc = ptrMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled);                  H();
    34243424            InsertConfigInteger(pCfg, "VMSVGA3dEnabled", f3DEnabled);
    34253425#endif
     
    34333433            char szExtraDataKey[sizeof("CustomVideoModeXX")];
    34343434            RTStrPrintf(szExtraDataKey, sizeof(szExtraDataKey), "CustomVideoMode%u", iMode);
    3435             hrc = pMachine->GetExtraData(Bstr(szExtraDataKey).raw(), bstr.asOutParam());    H();
     3435            hrc = ptrMachine->GetExtraData(Bstr(szExtraDataKey).raw(), bstr.asOutParam());  H();
    34363436            if (bstr.isEmpty())
    34373437                break;
     
    34623462         */
    34633463        BOOL fFadeIn;
    3464         hrc = biosSettings->COMGETTER(LogoFadeIn)(&fFadeIn);                                H();
     3464        hrc = ptrBiosSettings->COMGETTER(LogoFadeIn)(&fFadeIn);                             H();
    34653465        InsertConfigInteger(pCfg,  "FadeIn",  fFadeIn ? 1 : 0);
    34663466        BOOL fFadeOut;
    3467         hrc = biosSettings->COMGETTER(LogoFadeOut)(&fFadeOut);                              H();
     3467        hrc = ptrBiosSettings->COMGETTER(LogoFadeOut)(&fFadeOut);                           H();
    34683468        InsertConfigInteger(pCfg,  "FadeOut", fFadeOut ? 1: 0);
    34693469        ULONG logoDisplayTime;
    3470         hrc = biosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime);                   H();
     3470        hrc = ptrBiosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime);                H();
    34713471        InsertConfigInteger(pCfg,  "LogoTime", logoDisplayTime);
    34723472        Bstr logoImagePath;
    3473         hrc = biosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam());           H();
     3473        hrc = ptrBiosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam());        H();
    34743474        InsertConfigString(pCfg,   "LogoFile", Utf8Str(!logoImagePath.isEmpty() ? logoImagePath : "") );
    34753475
     
    34793479        BIOSBootMenuMode_T eBootMenuMode;
    34803480        int iShowBootMenu;
    3481         biosSettings->COMGETTER(BootMenuMode)(&eBootMenuMode);
     3481        hrc = ptrBiosSettings->COMGETTER(BootMenuMode)(&eBootMenuMode);                     H();
    34823482        switch (eBootMenuMode)
    34833483        {
Note: See TracChangeset for help on using the changeset viewer.

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