- Timestamp:
- Jul 30, 2020 1:37:36 PM (4 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r85558 r85559 998 998 /** Shared (internal) IDnDBase method implementations. 999 999 * @{ */ 1000 HRESULT i_isFormatSupported(const com::Utf8Str &aFormat, BOOL *aSupported);1000 bool i_isFormatSupported(const com::Utf8Str &aFormat) const; 1001 1001 const GuestDnDMIMEList &i_getFormats(void) const; 1002 1002 HRESULT i_addFormats(const GuestDnDMIMEList &aFormats); -
trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp
r85558 r85559 1164 1164 * Checks whether a given DnD format is supported or not. 1165 1165 * 1166 * @returns HRESULT1166 * @returns \c true if supported, \c false if not. 1167 1167 * @param aFormat DnD format to check. 1168 * @param aSupported Where to return \c TRUE if supported, or \c FALSE if not. 1169 */ 1170 HRESULT GuestDnDBase::i_isFormatSupported(const com::Utf8Str &aFormat, BOOL *aSupported) 1171 { 1172 *aSupported = std::find(m_lstFmtSupported.begin(), 1173 m_lstFmtSupported.end(), aFormat) != m_lstFmtSupported.end() 1174 ? TRUE : FALSE; 1175 return S_OK; 1168 */ 1169 bool GuestDnDBase::i_isFormatSupported(const com::Utf8Str &aFormat) const 1170 { 1171 return std::find(m_lstFmtSupported.begin(), m_lstFmtSupported.end(), aFormat) != m_lstFmtSupported.end(); 1176 1172 } 1177 1173 -
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r85558 r85559 186 186 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 187 187 188 return GuestDnDBase::i_isFormatSupported(aFormat, aSupported); 188 *aSupported = GuestDnDBase::i_isFormatSupported(aFormat) ? TRUE : FALSE; 189 190 return S_OK; 189 191 #endif /* VBOX_WITH_DRAG_AND_DROP */ 190 192 } -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r85558 r85559 184 184 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 185 185 186 return GuestDnDBase::i_isFormatSupported(aFormat, aSupported); 186 *aSupported = GuestDnDBase::i_isFormatSupported(aFormat) ? TRUE : FALSE; 187 188 return S_OK; 187 189 #endif /* VBOX_WITH_DRAG_AND_DROP */ 188 190 }
Note:
See TracChangeset
for help on using the changeset viewer.