Fix compiler warnings

This commit is contained in:
Georg Baum 2016-05-08 12:25:09 +02:00 committed by Richard Heck
parent d2e3a201b9
commit cfa0eea4b9

View File

@ -754,8 +754,8 @@ class QWindowsMimeMetafile : public QWINDOWSMIME {
public: public:
QWindowsMimeMetafile() {} QWindowsMimeMetafile() {}
bool canConvertFromMime(FORMATETC const & formatetc, bool canConvertFromMime(FORMATETC const & /*formatetc*/,
QMimeData const * mimedata) const QMimeData const * /*mimedata*/) const
{ {
return false; return false;
} }
@ -769,14 +769,14 @@ public:
return pDataObj->QueryGetData(&formatetc) == S_OK; return pDataObj->QueryGetData(&formatetc) == S_OK;
} }
bool convertFromMime(FORMATETC const & formatetc, bool convertFromMime(FORMATETC const & /*formatetc*/,
const QMimeData * mimedata, STGMEDIUM * pmedium) const const QMimeData * /*mimedata*/, STGMEDIUM * /*pmedium*/) const
{ {
return false; return false;
} }
QVariant convertToMime(QString const & mimetype, IDataObject * pDataObj, QVariant convertToMime(QString const & mimetype, IDataObject * pDataObj,
QVariant::Type preferredType) const QVariant::Type /*preferredType*/) const
{ {
QByteArray data; QByteArray data;
if (!canConvertToMime(mimetype, pDataObj)) if (!canConvertToMime(mimetype, pDataObj))
@ -807,7 +807,7 @@ public:
QVector<FORMATETC> formatsForMime(QString const & mimetype, QVector<FORMATETC> formatsForMime(QString const & mimetype,
QMimeData const * mimedata) const QMimeData const * /*mimedata*/) const
{ {
QVector<FORMATETC> formats; QVector<FORMATETC> formats;
if (mimetype == emfMimeType() || mimetype == wmfMimeType()) if (mimetype == emfMimeType() || mimetype == wmfMimeType())