VirtualBox

Changeset 42350 in vbox


Ignore:
Timestamp:
Jul 24, 2012 11:35:32 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: fix r79395: never call virtual functions from a base class constructor.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r42323 r42350  
    151151            break;
    152152    }
     153
     154    /* Prepare common things: */
     155    pMachineView->prepareCommon();
     156
     157    /* Prepare event-filters: */
     158    pMachineView->prepareFilters();
     159
     160    /* Prepare connections: */
     161    pMachineView->prepareConnections();
     162
     163    /* Prepare console connections: */
     164    pMachineView->prepareConsoleConnections();
     165
     166    /* Initialization: */
    153167    pMachineView->sltMachineStateChanged();
    154168    /** @todo Can we move the call to sltAdditionsStateChanged() from the
     
    156170     * but not for Fullscreen and Scale.  However for Scale it is a no op.,
    157171     * so it would not hurt.  Would it hurt for Fullscreen? */
     172
    158173    return pMachineView;
    159174}
     
    275290    /* Prepare frame buffer: */
    276291    prepareFrameBuffer();
    277 
    278     /* Prepare common things: */
    279     prepareCommon();
    280 
    281     /* Prepare event-filters: */
    282     prepareFilters();
    283 
    284     /* Prepare connections: */
    285     prepareConnections();
    286 
    287     /* Prepare console connections: */
    288     prepareConsoleConnections();
    289292}
    290293
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r42318 r42350  
    111111
    112112    /* Prepare routines: */
    113     virtual void prepareViewport();
    114     virtual void prepareFrameBuffer();
     113    void prepareViewport();
     114    void prepareFrameBuffer();
    115115    virtual void prepareCommon();
    116116    virtual void prepareFilters();
    117117    virtual void prepareConnections();
    118118    virtual void prepareConsoleConnections();
    119     virtual void loadMachineViewSettings();
     119    void loadMachineViewSettings();
    120120
    121121    /* Cleanup routines: */
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