VirtualBox

Ignore:
Timestamp:
Aug 23, 2021 7:08:38 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146438
Message:

Runtime: More VALID_PTR -> RT_VALID_PTR/AssertPtr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/time/time.cpp

    r82968 r90803  
    295295    int             iMonth;
    296296
    297     AssertMsg(VALID_PTR(pTime), ("%p\n", pTime));
    298     AssertMsg(VALID_PTR(pTimeSpec), ("%p\n", pTime));
     297    AssertPtr(pTime);
     298    AssertPtr(pTimeSpec);
    299299
    300300    /*
     
    414414     * Validate input.
    415415     */
    416     AssertReturn(VALID_PTR(pTimeSpec), NULL);
    417     AssertReturn(VALID_PTR(pTime), NULL);
     416    AssertPtrReturn(pTimeSpec, NULL);
     417    AssertPtrReturn(pTime, NULL);
    418418    AssertReturn(pTime->u32Nanosecond < 1000000000, NULL);
    419419    AssertReturn(pTime->u8Second < 60, NULL);
     
    696696     * Validate that we've got the minimum of stuff handy.
    697697     */
    698     AssertReturn(VALID_PTR(pTime), NULL);
     698    AssertPtrReturn(pTime, NULL);
    699699    AssertMsgReturn(!(pTime->fFlags & ~RTTIME_FLAGS_MASK), ("%#x\n", pTime->fFlags), NULL);
    700700    AssertMsgReturn((pTime->fFlags & RTTIME_FLAGS_TYPE_MASK) != RTTIME_FLAGS_TYPE_LOCAL, ("Use RTTimeLocalNormalize!\n"), NULL);
     
    736736     * Validate that we've got the minimum of stuff handy.
    737737     */
    738     AssertReturn(VALID_PTR(pTime), NULL);
     738    AssertPtrReturn(pTime, NULL);
    739739    AssertMsgReturn(!(pTime->fFlags & ~RTTIME_FLAGS_MASK), ("%#x\n", pTime->fFlags), NULL);
    740740    AssertMsgReturn((pTime->fFlags & RTTIME_FLAGS_TYPE_MASK) != RTTIME_FLAGS_TYPE_UTC, ("Use RTTimeNormalize!\n"), NULL);
     
    15541554     * Validate that we've got the minimum of stuff handy.
    15551555     */
    1556     AssertReturn(VALID_PTR(pTime), NULL);
     1556    AssertPtrReturn(pTime, NULL);
    15571557    AssertMsgReturn(!(pTime->fFlags & ~RTTIME_FLAGS_MASK), ("%#x\n", pTime->fFlags), NULL);
    15581558
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette