VirtualBox

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


Ignore:
Timestamp:
Dec 11, 2012 1:34:23 PM (12 years ago)
Author:
vboxsync
Message:

Main: make the code more readable. Places where the comparisons were of the form 'isValid() == true\false' or 'isZero() == true\false' were carved \ simplified.

File:
1 edited

Legend:

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

    r44039 r44091  
    420420    {
    421421#ifdef DEBUG
    422         ::RTUuidToStr(&mUuid, mszUuid, RTUUID_STR_LENGTH);
    423         m_pcszUUID = mszUuid;
     422//        ::RTUuidToStr(&mUuid, mszUuid, RTUUID_STR_LENGTH);
     423//        m_pcszUUID = mszUuid;
    424424#endif
    425425    }
     
    444444}
    445445*/
    446 inline bool isValidGuid(const Bstr& str)
    447 {
    448    Guid guid(str);
    449    return guid.isValid();
    450 //   return !guid.isEmpty();
    451 }
     446//inline bool isValidGuid(const Bstr& str)
     447//{
     448//   Guid guid(str);
     449//   return guid.isValid();
     450////   return !guid.isEmpty();
     451//}
    452452
    453453} /* namespace com */
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