From 64d7a82a52628e3f27cf5316d753540873a4b97b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 22 Jun 2016 16:18:07 +0200 Subject: [PATCH] fix gcc4 builds C++98 Flag is an enum -- not a class nor namespace --- libs/surfaces/osc/osc.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 5792fd5896..d95220558a 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -2563,35 +2563,35 @@ OSC::get_sorted_stripables(std::bitset<32> types) for (StripableList::iterator it = stripables.begin(); it != stripables.end(); ++it) { boost::shared_ptr s = *it; - if ((!types[9]) && (s->presentation_info().flags() & PresentationInfo::Flag::Hidden)) { + if ((!types[9]) && (s->presentation_info().flags() & PresentationInfo::Hidden)) { // do nothing... skip it } else { - if (types[0] && (s->presentation_info().flags() & PresentationInfo::Flag::AudioTrack)) { + if (types[0] && (s->presentation_info().flags() & PresentationInfo::AudioTrack)) { sorted.push_back (s); } else - if (types[1] && (s->presentation_info().flags() & PresentationInfo::Flag::MidiTrack)) { + if (types[1] && (s->presentation_info().flags() & PresentationInfo::MidiTrack)) { sorted.push_back (s); } else - if (types[2] && (s->presentation_info().flags() & PresentationInfo::Flag::AudioBus)) { + if (types[2] && (s->presentation_info().flags() & PresentationInfo::AudioBus)) { sorted.push_back (s); } else - if (types[3] && (s->presentation_info().flags() & PresentationInfo::Flag::MidiBus)) { + if (types[3] && (s->presentation_info().flags() & PresentationInfo::MidiBus)) { sorted.push_back (s); } else - if (types[4] && (s->presentation_info().flags() & PresentationInfo::Flag::VCA)) { + if (types[4] && (s->presentation_info().flags() & PresentationInfo::VCA)) { sorted.push_back (s); } else - if (types[5] && (s->presentation_info().flags() & PresentationInfo::Flag::MasterOut)) { + if (types[5] && (s->presentation_info().flags() & PresentationInfo::MasterOut)) { sorted.push_back (s); } else - if (types[6] && (s->presentation_info().flags() & PresentationInfo::Flag::MonitorOut)) { + if (types[6] && (s->presentation_info().flags() & PresentationInfo::MonitorOut)) { sorted.push_back (s); } else - if (types[8] && (s->presentation_info().flags() & PresentationInfo::Flag::Selected)) { + if (types[8] && (s->presentation_info().flags() & PresentationInfo::Selected)) { sorted.push_back (s); } else - if (types[9] && (s->presentation_info().flags() & PresentationInfo::Flag::Hidden)) { + if (types[9] && (s->presentation_info().flags() & PresentationInfo::Hidden)) { sorted.push_back (s); } }