VirtualBox

Changeset 6367 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 17, 2008 10:50:10 AM (17 years ago)
Author:
vboxsync
Message:

Main: Fixed illegal cast of HardDisk * to IVirtualDiskImage * in attempt to fix #2622.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r6156 r6367  
    13421342    else
    13431343        progressDesc = tr ("Starting the virtual machine");
    1344     progress->init ((IConsole *) this, progressDesc, FALSE /* aCancelable */);
     1344    progress->init (static_cast <IConsole *> (this),
     1345                    progressDesc, FALSE /* aCancelable */);
    13451346
    13461347    /* pass reference to caller if requested */
     
    16181619    ComObjPtr <Progress> progress;
    16191620    progress.createObject();
    1620     progress->init ((IConsole *) this,
     1621    progress->init (static_cast <IConsole *> (this),
    16211622                    Bstr (tr ("Saving the execution state of the virtual machine")),
    16221623                    FALSE /* aCancelable */);
     
    22282229        {
    22292230            combinedProgress.createObject();
    2230             rc = combinedProgress->init ((IConsole *) this,
     2231            rc = combinedProgress->init (static_cast <IConsole *> (this),
    22312232                                         Bstr (tr ("Taking snapshot of virtual machine")),
    22322233                                         serverProgress, saveProgress);
  • trunk/src/VBox/Main/HardDiskImpl.cpp

    r6310 r6367  
    422422    ComObjPtr <Progress> progress;
    423423    progress.createObject();
    424     rc = progress->init (mVirtualBox, (IVirtualDiskImage *) this,
     424    rc = progress->init (mVirtualBox, static_cast <IHardDisk *> (this),
    425425                         Bstr (tr ("Creating a hard disk clone")),
    426426                         FALSE /* aCancelable */);
     
    26462646        Bstr desc = aDynamic ? tr ("Creating a dynamically expanding hard disk")
    26472647                             : tr ("Creating a fixed-size hard disk");
    2648         rc = progress->init (mVirtualBox, (IVirtualDiskImage *) this, desc,
    2649                              FALSE /* aCancelable */);
     2648        rc = progress->init (mVirtualBox, static_cast <IVirtualDiskImage *> (this),
     2649                             desc, FALSE /* aCancelable */);
    26502650        CheckComRCReturnRC (rc);
    26512651    }
  • trunk/src/VBox/Main/HostImpl.cpp

    r6076 r6367  
    840840    ComObjPtr <Progress> progress;
    841841    progress.createObject();
    842     rc = progress->init (mParent, (IHost *) this,
     842    rc = progress->init (mParent, static_cast <IHost *> (this),
    843843                         Bstr (tr ("Creating host network interface")),
    844844                         FALSE /* aCancelable */);
     
    908908    ComObjPtr <Progress> progress;
    909909    progress.createObject();
    910     rc = progress->init (mParent, (IHost *) this,
     910    rc = progress->init (mParent, static_cast <IHost *> (this),
    911911                        Bstr (tr ("Removing host network interface")),
    912912                        FALSE /* aCancelable */);
  • trunk/src/VBox/Main/MachineImpl.cpp

    r6336 r6367  
    75517551        ComObjPtr <Progress> progress;
    75527552        progress.createObject();
    7553         progress->init (mParent, (IMachine *) mPeer, Bstr (tr ("Closing session")),
    7554                         FALSE /* aCancelable */);
     7553        progress->init (mParent, static_cast <IMachine *> (mPeer),
     7554                        Bstr (tr ("Closing session")), FALSE /* aCancelable */);
    75557555        progress.queryInterfaceTo (aProgress);
    75567556        mData->mSession.mProgress = progress;
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r6361 r6367  
    19501950    ComObjPtr <Progress> progress;
    19511951    progress.createObject();
    1952     progress->init (this, (IMachine *) machine,
     1952    progress->init (this, static_cast <IMachine *> (machine),
    19531953                    Bstr (tr ("Spawning session")),
    19541954                    FALSE /* aCancelable */);
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