VirtualBox

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


Ignore:
Timestamp:
May 28, 2010 5:14:53 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62118
Message:

OVF: fix incorrect disk UUIDs in machine XML on export

File:
1 edited

Legend:

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

    r28800 r29873  
    141141    }
    142142
     143    /**
     144     * Like toString, but encloses the returned string in curly brackets.
     145     * @return
     146     */
     147    Utf8Str toStringCurly() const
     148    {
     149        char buf[RTUUID_STR_LENGTH + 2] = "{";
     150        ::RTUuidToStr(&uuid, buf + 1, RTUUID_STR_LENGTH);
     151        buf[sizeof(buf) - 2] = '}';
     152        buf[sizeof(buf) - 1] = '\0';
     153        return Utf8Str(buf);
     154    }
     155
    143156    Bstr toUtf16() const
    144157    {
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