summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/engine/NodeFactory.cpp1
-rw-r--r--src/libs/engine/events/CreateNodeEvent.cpp1
-rw-r--r--src/libs/module/World.hpp5
-rw-r--r--src/libs/module/global.cpp11
4 files changed, 5 insertions, 13 deletions
diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp
index 949a5928..06d9ca1f 100644
--- a/src/libs/engine/NodeFactory.cpp
+++ b/src/libs/engine/NodeFactory.cpp
@@ -21,6 +21,7 @@
#include <dirent.h>
#include <float.h>
#include <cmath>
+#include <redlandmm/World.hpp>
#include "module/World.hpp"
#include "NodeFactory.hpp"
#include "ThreadManager.hpp"
diff --git a/src/libs/engine/events/CreateNodeEvent.cpp b/src/libs/engine/events/CreateNodeEvent.cpp
index 9a882209..7589b150 100644
--- a/src/libs/engine/events/CreateNodeEvent.cpp
+++ b/src/libs/engine/events/CreateNodeEvent.cpp
@@ -18,6 +18,7 @@
#include <raul/Maid.hpp>
#include <raul/Path.hpp>
#include <raul/Path.hpp>
+#include <redlandmm/World.hpp>
#include "module/World.hpp"
#include "CreateNodeEvent.hpp"
#include "Responder.hpp"
diff --git a/src/libs/module/World.hpp b/src/libs/module/World.hpp
index 29434069..f6c5a67a 100644
--- a/src/libs/module/World.hpp
+++ b/src/libs/module/World.hpp
@@ -23,19 +23,18 @@
#include <string>
#include <glibmm/module.h>
#include <raul/SharedPtr.hpp>
-#include <redlandmm/World.hpp>
#include "shared/LV2Features.hpp"
#ifdef HAVE_SLV2
#include <slv2/slv2.h>
#endif
-namespace Ingen {
+namespace Redland { class World; }
+namespace Ingen {
class Engine;
namespace Shared {
-
class EngineInterface;
diff --git a/src/libs/module/global.cpp b/src/libs/module/global.cpp
index a8a2720d..c78f9fc3 100644
--- a/src/libs/module/global.cpp
+++ b/src/libs/module/global.cpp
@@ -16,6 +16,7 @@
*/
#include <iostream>
+#include <redlandmm/World.hpp>
#include "global.hpp"
#include "World.hpp"
@@ -37,11 +38,6 @@ get_world()
{
static World* world = NULL;
- if (&world == NULL) {
- cerr << "ERROR: Ingen::Shared::world undefined." << endl;
- return NULL;
- }
-
if (!world) {
world = new World();
world->rdf_world = new Redland::World();
@@ -61,11 +57,6 @@ get_world()
void
destroy_world()
{
- if (&world == NULL) {
- cerr << "ERROR: Ingen::Shared::world undefined." << endl;
- return;
- }
-
if (world) {
#ifdef HAVE_SLV2
slv2_world_free(world->slv2_world);