summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-01 13:01:42 -0400
committerDavid Robillard <d@drobilla.net>2016-08-01 13:01:42 -0400
commit1a4e4a79991932714e39ef44b9f5ba1ca4c6c251 (patch)
treee1dc0adab0728aef11c6668e7aefdd643fdd05b7
parent902703efa9425a0630053c10229de911e23a2a43 (diff)
downloadingen-1a4e4a79991932714e39ef44b9f5ba1ca4c6c251.tar.gz
ingen-1a4e4a79991932714e39ef44b9f5ba1ca4c6c251.tar.bz2
ingen-1a4e4a79991932714e39ef44b9f5ba1ca4c6c251.zip
Fix compilation on OSX
-rw-r--r--ingen/LV2Features.hpp5
-rw-r--r--src/LV2Features.cpp7
-rw-r--r--src/server/events/Delta.cpp2
3 files changed, 8 insertions, 6 deletions
diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp
index 2fe71f11..5c1a0240 100644
--- a/ingen/LV2Features.hpp
+++ b/ingen/LV2Features.hpp
@@ -47,10 +47,7 @@ public:
Node* block) = 0;
protected:
- static void free_feature(LV2_Feature* feature) {
- free(feature->data);
- free(feature);
- }
+ static void free_feature(LV2_Feature* feature);
};
class EmptyFeature : public Feature {
diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp
index e9ba29e7..3465981e 100644
--- a/src/LV2Features.cpp
+++ b/src/LV2Features.cpp
@@ -22,6 +22,13 @@ using namespace std;
namespace Ingen {
+void
+LV2Features::Feature::free_feature(LV2_Feature* feature)
+{
+ free(feature->data);
+ free(feature);
+}
+
LV2Features::LV2Features()
{
}
diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp
index 898fd971..e41d6a87 100644
--- a/src/server/events/Delta.cpp
+++ b/src/server/events/Delta.cpp
@@ -639,8 +639,6 @@ Delta::post_process()
void
Delta::undo(Interface& target)
{
- const Ingen::URIs& uris = _engine.world()->uris();
-
if (_create_event) {
_create_event->undo(target);
} else if (_type == Type::PATCH) {