Move a forward declaration (for class ArdourVSpacer) so that MSVC can also use it
[ardour.git] / libs / surfaces / mackie / midi_byte_array.cc
index ffb94a03a9cf04862ed847e7fe626db7f62a400c..45d0439a75531052824e830071ee9c14dbebd8a3 100644 (file)
@@ -88,8 +88,9 @@ ostream & operator <<  (ostream & os, const MidiByteArray & mba)
 
 MidiByteArray & operator <<  (MidiByteArray & mba, const std::string & st)
 {
-       for  (string::const_iterator it = st.begin(); it != st.end(); ++it) {
-               mba << *it;
-       }
+       /* note that this assumes that "st" is ASCII encoded
+        */
+
+       mba.insert (mba.end(), st.begin(), st.end());
        return mba;
 }