Replace typedef with using
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -37,6 +37,6 @@ Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType)
|
||||
|
||||
} // namespace Engine
|
||||
|
||||
typedef Engine::Base EngineBase;
|
||||
using EngineBase = Engine::Base;
|
||||
|
||||
#endif // ENGINE_FWD_H
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user