VirtualBox

Changeset 14938 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 3, 2008 12:10:57 PM (16 years ago)
Author:
vboxsync
Message:

Use CheckComArgStrNotEmptyOrNull where appropriate.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r14820 r14938  
    15581558        return E_POINTER;
    15591559
    1560     if (!aName || *aName == 0)
    1561         return E_INVALIDARG;
     1560    CheckComArgStrNotEmptyOrNull(aName);
    15621561
    15631562    AutoWriteLock alock (this);
  • trunk/src/VBox/Main/NetworkAdapterImpl.cpp

    r14772 r14938  
    425425        return E_INVALIDARG;
    426426#else
    427     // empty strings are not allowed as path names
    428     if (aHostInterface && !(*aHostInterface))
    429         return E_INVALIDARG;
     427    CheckComArgStrNotEmptyOrNull(aHostInterface);
    430428#endif
    431429
  • trunk/src/VBox/Main/USBControllerImpl.cpp

    r14772 r14938  
    395395        return E_POINTER;
    396396
    397     if (!aName || *aName == 0)
    398         return E_INVALIDARG;
     397    CheckComArgStrNotEmptyOrNull(aName);
    399398
    400399    AutoCaller autoCaller (this);
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