Replace typedef with using

This commit is contained in:
Jonas Kvinge
2022-10-13 22:39:31 +02:00
parent 61204e8d35
commit b22320c48f
62 changed files with 90 additions and 116 deletions

View File

@@ -40,7 +40,7 @@
#include "core/signalchecker.h"
#ifndef u_int32_t
typedef unsigned int u_int32_t;
using u_int32_t = unsigned int;
#endif
static const int kDecodeRate = 11025;

View File

@@ -37,6 +37,6 @@ Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType)
} // namespace Engine
typedef Engine::Base EngineBase;
using EngineBase = Engine::Base;
#endif // ENGINE_FWD_H

View File

@@ -47,7 +47,7 @@ namespace Engine {
struct SimpleMetaBundle;
typedef std::vector<int16_t> Scope;
using Scope = std::vector<int16_t>;
class Base : public QObject {
Q_OBJECT
@@ -63,7 +63,7 @@ class Base : public QObject {
QString description;
QString iconname;
};
typedef QList<OutputDetails> OutputDetailsList;
using OutputDetailsList = QList<OutputDetails>;
virtual bool Init() = 0;
virtual State state() const = 0;
@@ -160,7 +160,7 @@ class Base : public QObject {
QString description;
QString iconname;
};
typedef QList<PluginDetails> PluginDetailsList;
using PluginDetailsList = QList<PluginDetails>;
EngineType type_;
bool volume_control_;

View File

@@ -835,7 +835,7 @@ std::shared_ptr<GstEnginePipeline> GstEngine::CreatePipeline(const QByteArray &g
void GstEngine::UpdateScope(const int chunk_length) {
typedef Engine::Scope::value_type sample_type;
using sample_type = Engine::Scope::value_type;
// Prevent dbz or invalid chunk size
if (!GST_CLOCK_TIME_IS_VALID(GST_BUFFER_DURATION(latest_buffer_))) return;