diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-10 13:50:19 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-10 13:57:18 -0400 |
commit | 2d4358ddb5e9cf3cd21b603b74dc999aaebf53a2 (patch) | |
tree | 156fb8fa0d0e182cacece8d112cb4dec3fd3f5aa /libs/ardour/ardour/stripable.h | |
parent | 3eaa6c038988776e3bab441b84de45b2a8364130 (diff) |
Various changes to PresentationInfo and a small consolidation of sorters.
The semantics for sorting PresentationInfo are up to the caller, not the
PresentationInfo object, so operator<() was removed and callers specifically
invoke ::order() for sorting.
Diffstat (limited to 'libs/ardour/ardour/stripable.h')
-rw-r--r-- | libs/ardour/ardour/stripable.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/ardour/ardour/stripable.h b/libs/ardour/ardour/stripable.h index 5447d8322b..8ad02c98b3 100644 --- a/libs/ardour/ardour/stripable.h +++ b/libs/ardour/ardour/stripable.h @@ -79,6 +79,12 @@ class LIBARDOUR_API Stripable : public SessionObject { void set_presentation_order (PresentationInfo::order_t, bool notify_class_listeners = true); void set_presentation_order_explicit (PresentationInfo::order_t); + struct PresentationOrderSorter { + bool operator() (boost::shared_ptr<Stripable> a, boost::shared_ptr<Stripable> b) { + return a->presentation_info().order() < b->presentation_info().order(); + } + }; + /* gui's call this for their own purposes. */ PBD::Signal2<void,std::string,void*> gui_changed; @@ -179,13 +185,6 @@ class LIBARDOUR_API Stripable : public SessionObject { PresentationInfo _presentation_info; }; -struct PresentationInfoSorter { - bool operator() (boost::shared_ptr<Stripable> a, boost::shared_ptr<Stripable> b) { - return a->presentation_info() < b->presentation_info(); - } -}; - - } #endif /* __libardour_stripable_h__ */ |