summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-03 17:12:00 +0000
committerDavid Robillard <d@drobilla.net>2013-02-03 17:12:00 +0000
commiteef993daeaedfdcde1d580d860843f06dc8b8892 (patch)
treeb6279dcfc0a87627de597a979c40e4448c6c470b
parent92ebdc5a6aa5c779821374c240a47e01718807a3 (diff)
downloadingen-eef993daeaedfdcde1d580d860843f06dc8b8892.tar.gz
ingen-eef993daeaedfdcde1d580d860843f06dc8b8892.tar.bz2
ingen-eef993daeaedfdcde1d580d860843f06dc8b8892.zip
Fix compilation with Clang 3.1.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5039 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/ingen_gui_lv2.cpp4
-rw-r--r--src/server/Broadcaster.hpp3
-rw-r--r--src/server/LV2Options.hpp3
3 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp
index 8f258e99..061f2276 100644
--- a/src/gui/ingen_gui_lv2.cpp
+++ b/src/gui/ingen_gui_lv2.cpp
@@ -88,6 +88,10 @@ instantiate(const LV2UI_Descriptor* descriptor,
LV2UI_Widget* widget,
const LV2_Feature* const* features)
{
+#if __cplusplus >= 201103L
+ using Ingen::SPtr;
+#endif
+
Ingen::set_bundle_path(bundle_path);
Ingen::IngenLV2UI* ui = new Ingen::IngenLV2UI();
diff --git a/src/server/Broadcaster.hpp b/src/server/Broadcaster.hpp
index 5de5ec8f..ba471bc2 100644
--- a/src/server/Broadcaster.hpp
+++ b/src/server/Broadcaster.hpp
@@ -64,7 +64,8 @@ public:
* This makes doing the right thing in recursive functions that send
* updates simple (e.g. Event::post_process()).
*/
- struct Transfer : public Raul::Noncopyable {
+ class Transfer : public Raul::Noncopyable {
+ public:
explicit Transfer(Broadcaster& b) : broadcaster(b) {
if (++broadcaster._bundle_depth == 1) {
broadcaster.bundle_begin();
diff --git a/src/server/LV2Options.hpp b/src/server/LV2Options.hpp
index cc42d68c..6856fe28 100644
--- a/src/server/LV2Options.hpp
+++ b/src/server/LV2Options.hpp
@@ -28,7 +28,8 @@
namespace Ingen {
namespace Server {
-struct LV2Options : public Ingen::LV2Features::Feature {
+class LV2Options : public Ingen::LV2Features::Feature {
+public:
explicit LV2Options(Engine& engine)
: _block_length(0)
, _seq_size(0)