VirtualBox

Changeset 97772 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Dec 9, 2022 5:39:49 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154840
Message:

DnD/Main: GuestDnD::toFormatString() now also accepts an optional separator for building a formats list string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r97761 r97772  
    10031003 * @returns Format list string.
    10041004 * @param   lstFormats          GuestDnDMIMEList to convert.
     1005 * @param   strSep              Separator to use between formats.
     1006 *                              Uses DND_FORMATS_SEPARATOR_STR as default.
    10051007 */
    10061008/* static */
    1007 com::Utf8Str GuestDnD::toFormatString(const GuestDnDMIMEList &lstFormats)
     1009com::Utf8Str GuestDnD::toFormatString(const GuestDnDMIMEList &lstFormats, const com::Utf8Str &strSep /* = DND_FORMATS_SEPARATOR_STR */)
    10081010{
    10091011    com::Utf8Str strFormat;
     
    10111013    {
    10121014        const com::Utf8Str &f = lstFormats.at(i);
    1013         strFormat += f + DND_FORMATS_SEPARATOR_STR;
     1015        strFormat += f + strSep;
    10141016    }
    10151017
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