From 4eaf43a21b1041d98c001c38608d7e80dda293a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 21:43:55 +0200 Subject: Use "using" over "typedef" --- src/server/Buffer.hpp | 2 +- src/server/PortImpl.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()->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. * -- cgit v1.2.1