VirtualBox

Changeset 61990 in vbox for trunk/src


Ignore:
Timestamp:
Jul 3, 2016 2:54:43 PM (8 years ago)
Author:
vboxsync
Message:

crOpenGL: Fix cppcheck complaints about redundant/missing NULL checks.
We never pass NULL for pfChanged, so this should have been harmless.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp

    r56253 r61990  
    787787{
    788788    bool fChanged = false;
    789     *pfChanged = false;
     789    if (pfChanged)
     790        *pfChanged = false;
    790791
    791792    if (VBoxVrListIsEmpty(pList))
     
    878879VBOXVREGDECL(int) VBoxVrListIntersect(PVBOXVR_LIST pList, PCVBOXVR_LIST pList2, bool *pfChanged)
    879880{
     881    bool fChanged = false;
     882
     883    int rc = vboxVrListIntersectNoJoin(pList, pList2, &fChanged);
    880884    if (pfChanged)
    881         *pfChanged = false;
    882 
    883     int rc = vboxVrListIntersectNoJoin(pList, pList2, pfChanged);
     885        *pfChanged = fChanged;
     886
    884887    if (!RT_SUCCESS(rc))
    885888    {
     
    888891    }
    889892
    890     if (*pfChanged)
     893    if (fChanged)
    891894    {
    892895        vboxVrListJoinRects(pList);
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