diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 21:43:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 4eaf43a21b1041d98c001c38608d7e80dda293a9 (patch) | |
tree | 1cbdfa113e98cc29e3e13b57cdf41368f5e2aaa2 /src | |
parent | 68eff78932e559cd4b71f0bc98276dec49f26b27 (diff) | |
download | ingen-4eaf43a21b1041d98c001c38608d7e80dda293a9.tar.gz ingen-4eaf43a21b1041d98c001c38608d7e80dda293a9.tar.bz2 ingen-4eaf43a21b1041d98c001c38608d7e80dda293a9.zip |
Use "using" over "typedef"
Diffstat (limited to 'src')
-rw-r--r-- | src/server/Buffer.hpp | 2 | ||||
-rw-r--r-- | src/server/PortImpl.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Buffer.hpp b/src/server/Buffer.hpp index 3e7eb753..57db16dd 100644 --- a/src/server/Buffer.hpp +++ b/src/server/Buffer.hpp @@ -69,7 +69,7 @@ public: return is_audio() ? _capacity : sizeof(LV2_Atom) + get<LV2_Atom>()->size; } - typedef BufferRef (BufferFactory::*GetFn)(LV2_URID, LV2_URID, uint32_t); + using GetFn = BufferRef (BufferFactory::*)(LV2_URID, LV2_URID, uint32_t); /** Set the buffer type and optional value type for this buffer. * diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index fa204310..c0d44ef6 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -266,7 +266,7 @@ public: bool is_toggled() const { return _is_toggled; } protected: - typedef BufferRef (BufferFactory::*GetFn)(LV2_URID, LV2_URID, uint32_t); + using GetFn = BufferRef (BufferFactory::*)(LV2_URID, LV2_URID, uint32_t); /** Set `voices` as the buffers to be used for this port. * |