summaryrefslogtreecommitdiffstats
path: root/src/Library.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 17:12:50 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commitecad88d2128f920f5e11cc3ff443d62b225c79d3 (patch)
treec497cebca3455f4201f38d017db0f1566f8004f7 /src/Library.cpp
parent4ca52683ce01f833c552aa62dd80a6a3e48e785c (diff)
downloadingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.gz
ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.bz2
ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.zip
Cleanup: Use "using" instead of "typedef" where appropriate
Diffstat (limited to 'src/Library.cpp')
-rw-r--r--src/Library.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Library.cpp b/src/Library.cpp
index 48002ef0..44deea90 100644
--- a/src/Library.cpp
+++ b/src/Library.cpp
@@ -41,7 +41,7 @@ Library::get_function(const char* name)
#ifdef _WIN32
return (VoidFuncPtr)GetProcAddress((HMODULE)_lib, name);
#else
- typedef VoidFuncPtr (*VoidFuncGetter)(void*, const char*);
+ using VoidFuncGetter = VoidFuncPtr (*)(void*, const char*);
VoidFuncGetter dlfunc = (VoidFuncGetter)dlsym;
return dlfunc(_lib, name);
#endif