VirtualBox

Changeset 90790 in vbox


Ignore:
Timestamp:
Aug 23, 2021 10:28:01 AM (3 years ago)
Author:
vboxsync
Message:

Main: More VALID_PTR -> RT_VALID_PTR/AssertPtr.

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

Legend:

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

    r86058 r90790  
    14331433        if (   RT_SUCCESS(vrc)
    14341434            && !RTErrInfoIsSet(&ErrInfo.Core)
    1435             && VALID_PTR(m->pReg))
     1435            && RT_VALID_PTR(m->pReg))
    14361436        {
    14371437            if (   VBOXEXTPACK_IS_MAJOR_VER_EQUAL(m->pReg->u32Version, uVersion)
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r90337 r90790  
    45104510    /* First check if the LUN already exists. */
    45114511    PCFGMNODE pLunL0 = CFGMR3GetChildF(pCtlInst, "LUN#%u", uLUN);
    4512     AssertReturn(!VALID_PTR(pLunL0) || fAttachDetach, VERR_INTERNAL_ERROR);
     4512    AssertReturn(!RT_VALID_PTR(pLunL0) || fAttachDetach, VERR_INTERNAL_ERROR);
    45134513
    45144514    if (pLunL0)
  • trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp

    r88253 r90790  
    29892989void ConsoleVRDPServer::Stop(void)
    29902990{
    2991     Assert(VALID_PTR(this)); /** @todo r=bird: there are(/was) some odd cases where this buster was invalid on
    2992                               * linux. Just remove this when it's 100% sure that problem has been fixed. */
     2991    AssertPtr(this); /** @todo r=bird: there are(/was) some odd cases where this buster was invalid on
     2992                      * linux. Just remove this when it's 100% sure that problem has been fixed. */
    29932993
    29942994#ifdef VBOX_WITH_USB
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r85304 r90790  
    36283628{
    36293629    Assert(!mParent->i_getMediaTreeLockHandle().isWriteLockOnCurrentThread());
    3630     Assert(!fOnlineMergePossible || VALID_PTR(aVMMALockList));
     3630    Assert(!fOnlineMergePossible || RT_VALID_PTR(aVMMALockList));
    36313631
    36323632    AutoWriteLock alock(aHD COMMA_LOCKVAL_SRC_POS);
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