1
0
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:
Anthony Bilinski 2022-03-15 06:47:12 -07:00
parent 6e7ca76911
commit acc46370ca
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
3 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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:

View File

@ -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;
};