Add missing virtual destructor for new class
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 1 Mar 2014 07:19:38 +0000 (23:19 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 1 Mar 2014 13:10:01 +0000 (14:10 +0100)
qmediaserviceproviderplugin.h:166:28: error: ‘struct QMediaServiceCameraInfoInterface’ has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]

Change-Id: I08c6718bfd87c5adeea9969afdd4766150163238
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/multimedia/qmediaserviceproviderplugin.h

index 2c276be..9563611 100644 (file)
@@ -165,6 +165,7 @@ Q_DECLARE_INTERFACE(QMediaServiceDefaultDeviceInterface, QMediaServiceDefaultDev
 
 struct Q_MULTIMEDIA_EXPORT QMediaServiceCameraInfoInterface
 {
+    virtual ~QMediaServiceCameraInfoInterface() {}
     virtual QCamera::Position cameraPosition(const QByteArray &device) const = 0;
     virtual int cameraOrientation(const QByteArray &device) const = 0;
 };