Fix warnings about unused private fields
avfaudioinputselectorcontrol.h:68:23: warning: private field 'm_service' is not used [-Wunused-private-field] Change-Id: I5722a2d1bf592862af3a4d36554419a653662892 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
committed by
Yoann Lopes
parent
b048f26281
commit
bc9cfcd08a
@@ -65,8 +65,6 @@ public:
|
||||
AVCaptureDevice *createCaptureDevice();
|
||||
|
||||
private:
|
||||
AVFCameraService *m_service;
|
||||
|
||||
QString m_activeInput;
|
||||
bool m_dirty;
|
||||
QString m_defaultDevice;
|
||||
|
||||
@@ -41,9 +41,9 @@ QT_USE_NAMESPACE
|
||||
|
||||
AVFAudioInputSelectorControl::AVFAudioInputSelectorControl(AVFCameraService *service, QObject *parent)
|
||||
: QAudioInputSelectorControl(parent)
|
||||
, m_service(service)
|
||||
, m_dirty(true)
|
||||
{
|
||||
Q_UNUSED(service);
|
||||
NSArray *videoDevices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeAudio];
|
||||
for (AVCaptureDevice *device in videoDevices) {
|
||||
QString deviceId = QString::fromUtf8([[device uniqueID] UTF8String]);
|
||||
|
||||
@@ -65,7 +65,6 @@ private Q_SLOTS:
|
||||
void updateStatus();
|
||||
|
||||
private:
|
||||
AVFCameraService *m_service;
|
||||
AVFCameraSession *m_session;
|
||||
|
||||
QCamera::State m_state;
|
||||
|
||||
@@ -40,12 +40,12 @@ QT_USE_NAMESPACE
|
||||
|
||||
AVFCameraControl::AVFCameraControl(AVFCameraService *service, QObject *parent)
|
||||
: QCameraControl(parent)
|
||||
, m_service(service)
|
||||
, m_session(service->session())
|
||||
, m_state(QCamera::UnloadedState)
|
||||
, m_lastStatus(QCamera::UnloadedStatus)
|
||||
, m_captureMode(QCamera::CaptureStillImage)
|
||||
{
|
||||
Q_UNUSED(service);
|
||||
connect(m_session, SIGNAL(stateChanged(QCamera::State)), SLOT(updateStatus()));
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,6 @@ public:
|
||||
QStringList availableMetaData() const;
|
||||
|
||||
private:
|
||||
AVFCameraService *m_service;
|
||||
QMap<QString, QVariant> m_tags;
|
||||
};
|
||||
|
||||
|
||||
@@ -40,8 +40,9 @@ QT_USE_NAMESPACE
|
||||
//metadata support is not implemented yet
|
||||
|
||||
AVFCameraMetaDataControl::AVFCameraMetaDataControl(AVFCameraService *service, QObject *parent)
|
||||
:QMetaDataWriterControl(parent), m_service(service)
|
||||
:QMetaDataWriterControl(parent)
|
||||
{
|
||||
Q_UNUSED(service);
|
||||
}
|
||||
|
||||
AVFCameraMetaDataControl::~AVFCameraMetaDataControl()
|
||||
|
||||
@@ -66,7 +66,6 @@ private Q_SLOTS:
|
||||
void updateReadyStatus();
|
||||
|
||||
private:
|
||||
AVFCameraService *m_service;
|
||||
AVFCameraSession *m_session;
|
||||
AVFCameraControl *m_cameraControl;
|
||||
bool m_ready;
|
||||
|
||||
@@ -46,13 +46,13 @@ QT_USE_NAMESPACE
|
||||
|
||||
AVFImageCaptureControl::AVFImageCaptureControl(AVFCameraService *service, QObject *parent)
|
||||
: QCameraImageCaptureControl(parent)
|
||||
, m_service(service)
|
||||
, m_session(service->session())
|
||||
, m_cameraControl(service->cameraControl())
|
||||
, m_ready(false)
|
||||
, m_lastCaptureId(0)
|
||||
, m_videoConnection(nil)
|
||||
{
|
||||
Q_UNUSED(service);
|
||||
m_stillImageOutput = [[AVCaptureStillImageOutput alloc] init];
|
||||
|
||||
NSDictionary *outputSettings = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||
|
||||
Reference in New Issue
Block a user