diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-30 16:48:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-30 16:48:58 +0000 |
commit | 74933f58659051f6d4ef52d1103b2b7ba4643883 (patch) | |
tree | 93069fda3163dce2e97b61a845863b68b300200d /libs/pbd/enumwriter.cc | |
parent | 8a17b0fb9073bb21ef2c718113f9e41359faf4fe (diff) |
restore excess calls to sync-order stuff (for now); allow MIDI controllers to use the same non-linear fader response as the gui; add various flags to PBD::Controllable and remove URI from that class
git-svn-id: svn://localhost/ardour2/branches/3.0@6414 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/enumwriter.cc')
-rw-r--r-- | libs/pbd/enumwriter.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libs/pbd/enumwriter.cc b/libs/pbd/enumwriter.cc index 134a00a207..2c6e5c73c8 100644 --- a/libs/pbd/enumwriter.cc +++ b/libs/pbd/enumwriter.cc @@ -63,11 +63,18 @@ nocase_cmp(const string & s1, const string& s2) return (size1 < size2) ? -1 : 1; } -EnumWriter::EnumWriter () +EnumWriter& +EnumWriter::instance() { if (_instance == 0) { - _instance = this; - } + _instance = new EnumWriter; + } + + return *_instance; +} + +EnumWriter::EnumWriter () +{ } EnumWriter::~EnumWriter () |