Replace typedefs with "using"

This commit is contained in:
Alex Harker
2018-06-18 15:49:41 +01:00
parent 6129919729
commit 9dba56d995
5 changed files with 11 additions and 14 deletions
+2 -4
View File
@@ -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
+3 -5
View File
@@ -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;
+1 -1
View File
@@ -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";
+2 -1
View File
@@ -224,7 +224,8 @@ public:
class Storage
{
typedef FrameLib_Parameters::Serial Serial;
using Serial = FrameLib_Parameters::Serial;
friend class FrameLib_LocalAllocator;
public:
+3 -3
View File
@@ -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: