VirtualBox

Changeset 73829 in vbox for trunk


Ignore:
Timestamp:
Aug 22, 2018 1:35:07 PM (6 years ago)
Author:
vboxsync
Message:

Main/ExtPackManager: resolve signed/unsigned warnings on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r73827 r73829  
    17471747     * Validate the input and get our bearings.
    17481748     */
    1749     AssertPtrReturn(pcszDescription, E_INVALIDARG);
    1750     AssertReturn(cOperations >= 1, E_INVALIDARG);
    1751     AssertReturn(uTotalOperationsWeight >= 1, E_INVALIDARG);
    1752     AssertPtrReturn(pcszFirstOperationDescription, E_INVALIDARG);
    1753     AssertReturn(uFirstOperationWeight >= 1, E_INVALIDARG);
    1754     AssertPtrReturn(ppProgressOut, E_INVALIDARG);
    1755 
    1756     AssertPtrReturn(pHlp, VERR_INVALID_POINTER);
    1757     AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);
     1749    AssertPtrReturn(pcszDescription, (uint32_t)E_INVALIDARG);
     1750    AssertReturn(cOperations >= 1, (uint32_t)E_INVALIDARG);
     1751    AssertReturn(uTotalOperationsWeight >= 1, (uint32_t)E_INVALIDARG);
     1752    AssertPtrReturn(pcszFirstOperationDescription, (uint32_t)E_INVALIDARG);
     1753    AssertReturn(uFirstOperationWeight >= 1, (uint32_t)E_INVALIDARG);
     1754    AssertPtrReturn(ppProgressOut, (uint32_t)E_INVALIDARG);
     1755
     1756    AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG);
     1757    AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG);
    17581758#ifndef VBOX_COM_INPROC
    17591759    ExtPack::Data *m = RT_FROM_CPP_MEMBER(pHlp, Data, Hlp);
     
    17841784     * Validate the input and get our bearings.
    17851785     */
    1786     AssertPtrReturn(pProgress, E_INVALIDARG);
    1787     AssertPtrReturn(pfCanceled, E_INVALIDARG);
    1788 
    1789     AssertPtrReturn(pHlp, VERR_INVALID_POINTER);
    1790     AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);
     1786    AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG);
     1787    AssertPtrReturn(pfCanceled, (uint32_t)E_INVALIDARG);
     1788
     1789    AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG);
     1790    AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG);
    17911791
    17921792    BOOL fCanceled = FALSE;
     
    18031803     * Validate the input and get our bearings.
    18041804     */
    1805     AssertPtrReturn(pProgress, E_INVALIDARG);
    1806     AssertReturn(uPercent <= 100, E_INVALIDARG);
    1807 
    1808     AssertPtrReturn(pHlp, VERR_INVALID_POINTER);
    1809     AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);
     1805    AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG);
     1806    AssertReturn(uPercent <= 100, (uint32_t)E_INVALIDARG);
     1807
     1808    AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG);
     1809    AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG);
    18101810
    18111811    return pProgress->SetCurrentOperationProgress(uPercent);
     
    18201820     * Validate the input and get our bearings.
    18211821     */
    1822     AssertPtrReturn(pProgress, E_INVALIDARG);
    1823     AssertPtrReturn(pcszNextOperationDescription, E_INVALIDARG);
    1824     AssertReturn(uNextOperationWeight >= 1, E_INVALIDARG);
    1825 
    1826     AssertPtrReturn(pHlp, VERR_INVALID_POINTER);
    1827     AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);
     1822    AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG);
     1823    AssertPtrReturn(pcszNextOperationDescription, (uint32_t)E_INVALIDARG);
     1824    AssertReturn(uNextOperationWeight >= 1, (uint32_t)E_INVALIDARG);
     1825
     1826    AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG);
     1827    AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG);
    18281828
    18291829    return pProgress->SetNextOperation(Bstr(pcszNextOperationDescription).raw(), uNextOperationWeight);
     
    18371837     * Validate the input and get our bearings.
    18381838     */
    1839     AssertPtrReturn(pProgress, E_INVALIDARG);
    1840 
    1841     AssertPtrReturn(pHlp, VERR_INVALID_POINTER);
    1842     AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);
     1839    AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG);
     1840
     1841    AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG);
     1842    AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG);
    18431843
    18441844    Progress *pProgressInt = static_cast<Progress *>(pProgress);
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