Replace typedefs with "using"
This commit is contained in:
@@ -10,10 +10,8 @@
|
||||
// This acts as a proxy to the global object with a suitable reference to the context
|
||||
|
||||
class FrameLib_Context
|
||||
{
|
||||
// Type definition for concision
|
||||
|
||||
typedef FrameLib_Global Global;
|
||||
{
|
||||
using Global = FrameLib_Global;
|
||||
|
||||
// Comparisions
|
||||
|
||||
|
||||
@@ -18,11 +18,9 @@
|
||||
|
||||
class FrameLib_DSP : public FrameLib_Block, public FrameLib_Queueable<FrameLib_DSP>
|
||||
{
|
||||
// Typedefs for concision / Queue access
|
||||
|
||||
typedef FrameLib_Queueable<FrameLib_Block>::Queue Queue;
|
||||
typedef FrameLib_Queueable<FrameLib_DSP>::Queue LocalQueue;
|
||||
typedef FrameLib_Parameters::Serial Serial;
|
||||
using Queue = FrameLib_Queueable<FrameLib_Block>::Queue;
|
||||
using LocalQueue = FrameLib_Queueable<FrameLib_DSP>::Queue;
|
||||
using Serial = FrameLib_Parameters::Serial;
|
||||
|
||||
friend class FrameLib_ProcessingQueue;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ static char exportCPPOpen[] = "\n\
|
||||
#include \"FrameLib_Objects.h\"\n\n\
|
||||
$::$(FrameLib_Proxy *proxy) : mNumAudioIns(0), mNumAudioOuts(0), mProxy(proxy)\n\
|
||||
{\n\
|
||||
typedef FrameLib_Object<FrameLib_Multistream>::Connection Connection;\n\n\
|
||||
using Connection = FrameLib_Object<FrameLib_Multistream>::Connection;\n\n\
|
||||
FrameLib_Global::get(&mGlobal);\n\
|
||||
FrameLib_Context context(mGlobal, this);\n\
|
||||
FrameLib_Parameters::AutoSerial parameters;\n\n";
|
||||
|
||||
@@ -224,7 +224,8 @@ public:
|
||||
|
||||
class Storage
|
||||
{
|
||||
typedef FrameLib_Parameters::Serial Serial;
|
||||
using Serial = FrameLib_Parameters::Serial;
|
||||
|
||||
friend class FrameLib_LocalAllocator;
|
||||
|
||||
public:
|
||||
|
||||
@@ -19,9 +19,9 @@ class FrameLib_Multistream : public FrameLib_Object<FrameLib_Multistream>
|
||||
|
||||
protected:
|
||||
|
||||
typedef FrameLib_Object<FrameLib_Block>::Connection BlockConnection;
|
||||
typedef std::vector<BlockConnection> MultistreamOutput;
|
||||
typedef FrameLib_Object::Connection MultistreamConnection;
|
||||
using BlockConnection = FrameLib_Object<FrameLib_Block>::Connection;
|
||||
using MultistreamOutput = std::vector<BlockConnection>;
|
||||
using MultistreamConnection = FrameLib_Object::Connection;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user