fix gcc4 builds C++98
authorRobin Gareus <robin@gareus.org>
Wed, 22 Jun 2016 14:18:07 +0000 (16:18 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 22 Jun 2016 14:18:07 +0000 (16:18 +0200)
Flag is an enum -- not a class nor namespace

libs/surfaces/osc/osc.cc

index 5792fd58962dfc3932c1da5dbf41ab90f6b356cd..d95220558ad9f80e0f5b9dd0d20016c674938804 100644 (file)
@@ -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<Stripable> 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);
                        }
                }