Remove checking system clipboard formats #5041
This commit is contained in:
parent
1ac8db56d9
commit
20d9b80291
|
@ -166,19 +166,15 @@ MSWindowsClipboard::get(EFormat format) const
|
||||||
{
|
{
|
||||||
// find the converter for the first clipboard format we can handle
|
// find the converter for the first clipboard format we can handle
|
||||||
IMSWindowsClipboardConverter* converter = NULL;
|
IMSWindowsClipboardConverter* converter = NULL;
|
||||||
UINT win32Format = EnumClipboardFormats(0);
|
|
||||||
while (converter == NULL && win32Format != 0) {
|
|
||||||
for (ConverterList::const_iterator index = m_converters.begin();
|
for (ConverterList::const_iterator index = m_converters.begin();
|
||||||
index != m_converters.end(); ++index) {
|
index != m_converters.end(); ++index) {
|
||||||
|
|
||||||
converter = *index;
|
converter = *index;
|
||||||
if (converter->getWin32Format() == win32Format &&
|
if (converter->getFormat() == format) {
|
||||||
converter->getFormat() == format) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
converter = NULL;
|
converter = NULL;
|
||||||
}
|
}
|
||||||
win32Format = EnumClipboardFormats(win32Format);
|
|
||||||
}
|
|
||||||
|
|
||||||
// if no converter then we don't recognize any formats
|
// if no converter then we don't recognize any formats
|
||||||
if (converter == NULL) {
|
if (converter == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue