summaryrefslogtreecommitdiffstats
path: root/src/Library.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:13:33 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit14cd32a043552d39738ae0e84e4ef8ab93783296 (patch)
tree829845243215ed3fd96ff8fd6d6f324c35a60b3e /src/Library.cpp
parent88dff1aabd3c81d1d81ac256e0061b98e0d24cec (diff)
downloadingen-14cd32a043552d39738ae0e84e4ef8ab93783296.tar.gz
ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.tar.bz2
ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.zip
Cleanup: Use "auto" to avoid repeating type names
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 44deea90..a8a7107e 100644
--- a/src/Library.cpp
+++ b/src/Library.cpp
@@ -42,7 +42,7 @@ Library::get_function(const char* name)
return (VoidFuncPtr)GetProcAddress((HMODULE)_lib, name);
#else
using VoidFuncGetter = VoidFuncPtr (*)(void*, const char*);
- VoidFuncGetter dlfunc = (VoidFuncGetter)dlsym;
+ auto dlfunc = reinterpret_cast<VoidFuncGetter>(dlsym);
return dlfunc(_lib, name);
#endif
}