From 8bc9aca63644d63de3ccccbb4752e79d3d3c7854 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Apr 2011 02:03:23 +0000 Subject: Don't hide pointers behind typedefs. Use const appropriately in API (makes it clear from the type whether objects should be freed or not). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3222 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/World.cpp | 4 ++-- src/shared/World.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shared') diff --git a/src/shared/World.cpp b/src/shared/World.cpp index 235bda91..e0bff450 100644 --- a/src/shared/World.cpp +++ b/src/shared/World.cpp @@ -177,7 +177,7 @@ public: SharedPtr serialiser; SharedPtr parser; SharedPtr store; - LilvWorld lilv_world; + LilvWorld* lilv_world; std::string jack_uuid; }; @@ -210,7 +210,7 @@ Raul::Configuration* World::conf() { return _impl->conf; LV2Features* World::lv2_features() { return _impl->lv2_features; } #ifdef HAVE_LILV -LilvWorld World::lilv_world() { return _impl->lilv_world; } +LilvWorld* World::lilv_world() { return _impl->lilv_world; } #endif Sord::World* World::rdf_world() { return _impl->rdf_world; } SharedPtr World::uris() { return _impl->uris; } diff --git a/src/shared/World.hpp b/src/shared/World.hpp index 44e2478e..76f40442 100644 --- a/src/shared/World.hpp +++ b/src/shared/World.hpp @@ -29,7 +29,7 @@ #include "raul/Configuration.hpp" #include "raul/SharedPtr.hpp" -typedef struct _LilvWorld* LilvWorld; +typedef struct LilvWorldImpl LilvWorld; namespace Sord { class World; } @@ -99,7 +99,7 @@ public: virtual LV2Features* lv2_features(); - virtual LilvWorld lilv_world(); + virtual LilvWorld* lilv_world(); virtual void set_jack_uuid(const std::string& uuid); virtual std::string jack_uuid(); -- cgit v1.2.1