VirtualBox

Changeset 60950 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
May 12, 2016 2:17:52 PM (9 years ago)
Author:
vboxsync
Message:

SafeConstGUIDArray: Don't try reference NULL, use 1 instead or clang goes all wicked on us.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/array.h

    r60701 r60950  
    14561456    const nsID &operator[] (size_t aIdx) const
    14571457    {
    1458         AssertReturn(m.arr != NULL,  **((const nsID * *)NULL));
    1459         AssertReturn(aIdx < size(), **((const nsID * *)NULL));
     1458        AssertReturn(m.arr != NULL,  **((const nsID * *)1));
     1459        AssertReturn(aIdx < size(), **((const nsID * *)1));
    14601460        return *m.arr[aIdx];
    14611461    }
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