VirtualBox

Changeset 21068 in vbox


Ignore:
Timestamp:
Jun 30, 2009 2:06:33 PM (16 years ago)
Author:
vboxsync
Message:

OVF: fix warnings and a wrong parameter possibly leading to bad config

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

Legend:

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

    r20930 r21068  
    39863986        m->ulWeightPerOperation = 1;
    39873987    }
    3988     ULONG ulOVFCreationWeight = ((double)ulTotalOperationsWeight * 50.0 / 100.0); /* Use 50% for the creation of the OVF & the disks */
     3988    ULONG ulOVFCreationWeight = (ULONG)((double)ulTotalOperationsWeight * 50.0 / 100.0); /* Use 50% for the creation of the OVF & the disks */
    39893989    ulTotalOperationsWeight += ulOVFCreationWeight;
    39903990
     
    43764376 * @param aOrigValue Corresponding original value from OVF.
    43774377 * @param aAutoValue Initial configuration value (can be overridden by caller with setFinalValues).
     4378 * @param ulSizeMB Weight for IProgress
    43784379 * @param strExtraConfig Extra configuration; meaning dependent on type.
    43794380 */
     
    48084809                                   strAttachmentType,      // orig
    48094810                                   Utf8StrFmt("%RI32", (uint32_t)adapterType),   // conf
     4811                                   0,
    48104812                                   Utf8StrFmt("type=%s", strAttachmentType.c_str()));       // extra conf
    48114813            }
  • trunk/src/VBox/Main/VFSExplorerImpl.cpp

    r20963 r21068  
    363363                throw setError(VBOX_E_FILE_ERROR, tr ("Can't delete file '%s' (%Rrc)"), szPath, vrc);
    364364            if(aTask->progress)
    365                 aTask->progress->setCurrentOperationProgress(fPercentStep * i);
     365                aTask->progress->setCurrentOperationProgress((ULONG)(fPercentStep * i));
    366366        }
    367367    }
     
    489489                throw setError(VBOX_E_FILE_ERROR, tr ("Can't delete file '%s' (%Rrc)"), (*it).c_str(), vrc);
    490490            if(aTask->progress)
    491                 aTask->progress->setCurrentOperationProgress(fPercentStep * i);
     491                aTask->progress->setCurrentOperationProgress((ULONG)(fPercentStep * i));
    492492        }
    493493    }
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