VirtualBox

Changeset 97827 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 16, 2022 3:24:52 PM (2 years ago)
Author:
vboxsync
Message:

DnD/Additions/VBoxClient: Make use of DND_PATH_SEPARATOR_STR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r97826 r97827  
    306306    }
    307307
    308     inline RTCString xAtomListToString(const VBoxDnDAtomList &formatList)
     308    inline RTCString xAtomListToString(const VBoxDnDAtomList &formatList, const RTCString &strSep = DND_FORMATS_SEPARATOR_STR)
    309309    {
    310310        RTCString format;
    311311        for (size_t i = 0; i < formatList.size(); ++i)
    312             format += xAtomToString(formatList.at(i)) + "\r\n";
     312            format += xAtomToString(formatList.at(i)) + strSep;
    313313        return format;
    314314    }
     
    22532253    int rc;
    22542254
    2255     RTCString strFormats = "\r\n"; /** @todo If empty, IOCTL fails with VERR_ACCESS_DENIED. */
     2255    RTCString         strFormats       = DND_PATH_SEPARATOR_STR; /** @todo If empty, IOCTL fails with VERR_ACCESS_DENIED. */
    22562256    VBOXDNDACTION     dndActionDefault = VBOX_DND_ACTION_IGNORE;
    22572257    VBOXDNDACTIONLIST dndActionList    = VBOX_DND_ACTION_IGNORE;
     
    34103410                            {
    34113411                                RTCList<RTCString> lstFormats =
    3412                                     RTCString(pVbglR3Event->u.HG_Enter.pszFormats, pVbglR3Event->u.HG_Enter.cbFormats - 1).split("\r\n");
     3412                                    RTCString(pVbglR3Event->u.HG_Enter.pszFormats, pVbglR3Event->u.HG_Enter.cbFormats - 1).split(DND_PATH_SEPARATOR_STR);
    34133413                                rc = m_pCurDnD->hgEnter(lstFormats, pVbglR3Event->u.HG_Enter.dndLstActionsAllowed);
    34143414                                if (RT_FAILURE(rc))
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