summaryrefslogtreecommitdiff
path: root/libs/audiographer/audiographer
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-24 02:54:10 +0000
committerDavid Robillard <d@drobilla.net>2012-05-24 02:54:10 +0000
commit27a1cf2cf73703267cac5bda2acca386afb374b3 (patch)
tree122ceba55fef1d183d1b32dca1fd60ffdc113112 /libs/audiographer/audiographer
parenteffe4de1889bfefba6550dff4244e06c2c7261bd (diff)
Compile cleanly with clang.
To compile Ardour with LLVM/clang, do the usual thing but set the CXX and CC environment variables, e.g.: CC=/usr/bin/clang CXX=/usr/bin/clang++ ./waf configure build git-svn-id: svn://localhost/ardour2/branches/3.0@12418 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/audiographer/audiographer')
-rw-r--r--libs/audiographer/audiographer/process_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/audiographer/audiographer/process_context.h b/libs/audiographer/audiographer/process_context.h
index b73f5d69d5..df00812c01 100644
--- a/libs/audiographer/audiographer/process_context.h
+++ b/libs/audiographer/audiographer/process_context.h
@@ -121,8 +121,9 @@ protected:
/// A process context that allocates and owns it's data buffer
template <typename T = DefaultSampleType>
-struct AllocatingProcessContext : public ProcessContext<T>
+class AllocatingProcessContext : public ProcessContext<T>
{
+public:
/// Allocates uninitialized memory
AllocatingProcessContext (framecnt_t frames, ChannelCount channels)
: ProcessContext<T> (new T[frames], frames, channels) {}