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" --- ingen/World.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ingen/World.hpp') diff --git a/ingen/World.hpp b/ingen/World.hpp index b5fc7350..e06c0a18 100644 --- a/ingen/World.hpp +++ b/ingen/World.hpp @@ -26,7 +26,7 @@ #include #include -typedef struct LilvWorldImpl LilvWorld; +using LilvWorld = struct LilvWorldImpl; namespace Sord { class World; } @@ -89,10 +89,10 @@ public: virtual bool run_module(const char* name); /** A function to create a new remote Interface. */ - typedef SPtr (*InterfaceFactory)( - World& world, - const URI& engine_uri, - const SPtr& respondee); + using InterfaceFactory = + SPtr (*)(World& world, + const URI& engine_uri, + const SPtr& respondee); /** Register an InterfaceFactory (for module implementations). */ virtual void add_interface_factory(const std::string& scheme, -- cgit v1.2.1