qwindowmime.cpp: fix typo, remove unused variable

Change-Id: If557b191ea7be95a6c9e71069eb1e744f3e73b47
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
bb10
David Faure 2014-11-05 16:50:56 +01:00
parent a4a33a284f
commit 8bed6b6a7f
1 changed files with 1 additions and 2 deletions

View File

@ -791,7 +791,6 @@ QVariant QWindowsMimeURI::convertToMime(const QString &mimeType, LPDATAOBJECT pD
{
if (mimeType == QLatin1String("text/uri-list")) {
if (canGetData(CF_HDROP, pDataObj)) {
QByteArray texturi;
QList<QVariant> urls;
QByteArray data = getData(CF_HDROP, pDataObj);
@ -1354,7 +1353,7 @@ bool QLastResortMimes::canConvertToMime(const QString &mimeType, IDataObject *pD
int cf = RegisterClipboardFormat(reinterpret_cast<const wchar_t *> (clipFormat.utf16()));
return canGetData(cf, pDataObj);
} else if (formats.keys(mimeType).isEmpty()) {
// if it is not in there then register it an see if we can get it
// if it is not in there then register it and see if we can get it
int cf = QWindowsMime::registerMimeType(mimeType);
return canGetData(cf, pDataObj);
} else {