VirtualBox

Ignore:
Timestamp:
Aug 9, 2013 8:22:43 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87827
Message:

FE/Qt: suggestion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r47615 r47626  
    9191{
    9292    /* Make sure parent is set! */
    93     AssertMsg(pParent, ("Parent is NULL!\n"));
    94     if (!pParent)
    95         return;
     93    AssertPtrReturnVoid(pParent);
    9694
    9795    /* Make sure corresponding popup-stack *exists*: */
     
    109107{
    110108    /* Make sure parent is set! */
    111     AssertMsg(pParent, ("Parent is NULL!\n"));
    112     if (!pParent)
    113         return;
     109    AssertPtrReturnVoid(pParent);
    114110
    115111    /* Make sure corresponding popup-stack *exists*: */
     
    127123{
    128124    /* Make sure parent is set! */
    129     AssertMsg(pParent, ("Parent is NULL!\n"));
    130     if (!pParent)
    131         return;
     125    AssertPtrReturnVoid(pParent);
    132126
    133127    /* Composing corresponding popup-stack: */
     
    199193{
    200194    /* Make sure parent is set! */
    201     AssertMsg(pParent, ("Parent is NULL!\n"));
    202     if (!pParent)
    203         return;
     195    AssertPtrReturnVoid(pParent);
    204196
    205197    /* Prepare buttons: */
     
    285277{
    286278    /* Make sure parent is set! */
    287     AssertMsg(pParent, ("Parent is NULL!\n"));
    288     if (!pParent)
    289         return;
     279    AssertPtrReturnVoid(pParent);
    290280
    291281    /* Make sure corresponding popup-stack *exists*: */
     
    338328{
    339329    /* Make sure parent is set! */
    340     AssertMsg(pParent, ("Parent is NULL!\n"));
    341     if (!pParent)
    342         return QString();
     330    AssertPtrReturn(pParent, QString());
    343331
    344332    /* Special handling for Runtime UI: */
     
    354342{
    355343    /* Make sure parent is set! */
    356     AssertMsg(pParent, ("Parent is NULL!\n"));
    357     if (!pParent)
    358         return;
     344    AssertPtrReturnVoid(pParent);
    359345
    360346    /* Assign event-filter: */
     
    382368{
    383369    /* Make sure parent is set! */
    384     AssertMsg(pParent, ("Parent is NULL!\n"));
    385     if (!pParent)
    386         return;
     370    AssertPtrReturnVoid(pParent);
    387371
    388372    /* Unassign parent: */
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