mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Comply with Clang's Wunused-private-field
This commit is contained in:
parent
6e7ca76911
commit
acc46370ca
|
@ -41,7 +41,6 @@ public:
|
|||
private:
|
||||
// Should never be modified, but do not want to lose assignment operators
|
||||
uint64_t filesize;
|
||||
size_t speedSampleCount;
|
||||
int samplePeriodMs;
|
||||
|
||||
struct Sample
|
||||
|
|
|
@ -79,12 +79,10 @@ AvFindInputFormatRet iformat{nullptr};
|
|||
QHash<QString, CameraDevice*> CameraDevice::openDevices;
|
||||
QMutex CameraDevice::openDeviceLock, CameraDevice::iformatLock;
|
||||
|
||||
CameraDevice::CameraDevice(const QString& devName_, AVFormatContext* context_,
|
||||
Settings& settings_)
|
||||
CameraDevice::CameraDevice(const QString& devName_, AVFormatContext* context_)
|
||||
: devName{devName_}
|
||||
, context{context_}
|
||||
, refcount{1}
|
||||
, settings{settings_}
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -133,7 +131,7 @@ CameraDevice* CameraDevice::open(Settings& settings, QString devName, AVDictiona
|
|||
fctx->max_analyze_duration = aduration;
|
||||
#endif
|
||||
|
||||
dev = new CameraDevice{devName, fctx, settings};
|
||||
dev = new CameraDevice{devName, fctx};
|
||||
openDevices[devName] = dev;
|
||||
|
||||
out:
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
static bool isScreen(const QString& devName);
|
||||
|
||||
private:
|
||||
CameraDevice(const QString& devName_, AVFormatContext* context_, Settings& settings);
|
||||
CameraDevice(const QString& devName_, AVFormatContext* context_);
|
||||
static CameraDevice* open(Settings& settings, QString devName, AVDictionary** options);
|
||||
static bool getDefaultInputFormat();
|
||||
static QVector<QPair<QString, QString>> getRawDeviceListGeneric();
|
||||
|
@ -65,5 +65,4 @@ private:
|
|||
std::atomic_int refcount;
|
||||
static QHash<QString, CameraDevice*> openDevices;
|
||||
static QMutex openDeviceLock, iformatLock;
|
||||
Settings& settings;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user