diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-03-02 01:12:34 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-03-03 01:56:15 (GMT) |
commit | d2f456c8e94b6c7752818a9e3c819784e18237f0 (patch) | |
tree | 7dfba3105671500afaf20e2da6f3dbcf557bb1fd /src/multimedia/base | |
parent | 39a2b4cb71423db004ea5e6380c9c73bb35d5a2d (diff) | |
download | Qt-d2f456c8e94b6c7752818a9e3c819784e18237f0.zip Qt-d2f456c8e94b6c7752818a9e3c819784e18237f0.tar.gz Qt-d2f456c8e94b6c7752818a9e3c819784e18237f0.tar.bz2 |
Fixed compiler warnings when compiling multimedia module.
Reviewed-by:Andrew den Exter
Diffstat (limited to 'src/multimedia/base')
-rw-r--r-- | src/multimedia/base/qmediaserviceprovider.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/multimedia/base/qmediaserviceprovider.cpp b/src/multimedia/base/qmediaserviceprovider.cpp index eb6505c..d51d682 100644 --- a/src/multimedia/base/qmediaserviceprovider.cpp +++ b/src/multimedia/base/qmediaserviceprovider.cpp @@ -268,7 +268,7 @@ class QPluginServiceProvider : public QMediaServiceProvider public: QMediaService* requestService(const QByteArray &type, const QMediaServiceProviderHint &hint) { - QString key(type); + QString key(QString::fromLatin1(type.constData(),type.length())); QList<QMediaServiceProviderPlugin *>plugins; foreach (QObject *obj, loader()->instances(key)) { @@ -383,7 +383,8 @@ public: const QStringList& codecs, int flags) const { - QList<QObject*> instances = loader()->instances(serviceType); + QList<QObject*> instances = loader()->instances( + QString::fromLatin1(serviceType.constData(),serviceType.length())); if (instances.isEmpty()) return QtMultimedia::NotSupported; @@ -424,7 +425,8 @@ public: QStringList supportedMimeTypes(const QByteArray &serviceType, int flags) const { - QList<QObject*> instances = loader()->instances(serviceType); + QList<QObject*> instances = loader()->instances( + QString::fromLatin1(serviceType.constData(),serviceType.length())); QStringList supportedTypes; @@ -457,7 +459,8 @@ public: { QList<QByteArray> res; - foreach(QObject *obj, loader()->instances(serviceType)) { + foreach(QObject *obj, loader()->instances( + QString::fromLatin1(serviceType.constData(),serviceType.length()))) { QMediaServiceSupportedDevicesInterface *iface = qobject_cast<QMediaServiceSupportedDevicesInterface*>(obj); @@ -471,7 +474,8 @@ public: QString deviceDescription(const QByteArray &serviceType, const QByteArray &device) { - foreach(QObject *obj, loader()->instances(serviceType)) { + foreach(QObject *obj, loader()->instances( + QString::fromLatin1(serviceType.constData(),serviceType.length()))) { QMediaServiceSupportedDevicesInterface *iface = qobject_cast<QMediaServiceSupportedDevicesInterface*>(obj); |