Constification: make Stateful::get_state() const, with all other required const-ness added (libs)

This commit is contained in:
Paul Davis 2022-04-06 21:56:32 -06:00
parent 9e69c0d184
commit 7bf89ce109
233 changed files with 476 additions and 460 deletions

View File

@ -322,7 +322,7 @@ Amp::apply_simple_gain (AudioBuffer& buf, samplecnt_t nframes, gain_t target, sa
}
XMLNode&
Amp::state ()
Amp::state () const
{
XMLNode& node (Processor::state ());
switch (_gain_control->parameter().type()) {

View File

@ -54,7 +54,7 @@ public:
void setup_gain_automation (samplepos_t start_sample, samplepos_t end_sample, samplecnt_t nframes);
XMLNode& state ();
XMLNode& state () const;
int set_state (const XMLNode&, int version);
static gain_t apply_gain (BufferSet& bufs, samplecnt_t sample_rate, samplecnt_t nframes, gain_t initial, gain_t target, bool midi_amp = true);

View File

@ -47,7 +47,7 @@ public:
float sample_rate () const;
int setup_peakfile ();
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
bool can_truncate_peaks() const { return false; }

View File

@ -57,7 +57,7 @@ class LIBARDOUR_API AudioTrack : public Track
boost::shared_ptr<AudioFileSource> write_source (uint32_t n = 0);
protected:
XMLNode& state (bool save_template);
XMLNode& state (bool save_template) const;
private:
int deprecated_use_diskstream_connections ();

View File

@ -66,7 +66,7 @@ public:
int setup_peakfile ();
void set_gain (float g, bool temporarily = false);
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
bool can_truncate_peaks() const { return true; }

View File

@ -127,8 +127,8 @@ class LIBARDOUR_API AudioRegion : public Region, public AudioReadable
samplecnt_t read_raw_internal (Sample*, samplepos_t, samplecnt_t, int channel) const;
XMLNode& state ();
XMLNode& get_basic_state ();
XMLNode& state () const;
XMLNode& get_basic_state () const;
int set_state (const XMLNode&, int version);
void fade_range (samplepos_t, samplepos_t);

View File

@ -73,7 +73,7 @@ class LIBARDOUR_API AudioSource : virtual public Source, public ARDOUR::AudioRea
mutable PBD::Signal0<void> PeaksReady;
mutable PBD::Signal2<void,samplepos_t,samplepos_t> PeakRangeReady;
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
int rename_peakfile (std::string newpath);

View File

@ -110,7 +110,7 @@ public:
static const std::string xml_node_name;
int set_automation_xml_state (const XMLNode&, Evoral::Parameter default_param);
XMLNode& get_automation_xml_state();
XMLNode& get_automation_xml_state() const;
PBD::Signal0<void> AutomationStateChanged;

View File

@ -113,7 +113,7 @@ public:
bool writing () const { return _state == Write; }
bool touch_enabled () const { return _state & (Touch | Latch); }
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode &, int version);
Command* memento_command (XMLNode* before, XMLNode* after);
@ -130,8 +130,8 @@ private:
void create_curve_if_necessary ();
int deserialize_events (const XMLNode&);
XMLNode& state (bool save_auto_state, bool need_lock);
XMLNode& serialize_events (bool need_lock);
XMLNode& state (bool save_auto_state, bool need_lock) const;
XMLNode& serialize_events (bool need_lock) const;
void maybe_signal_changed ();

View File

@ -55,8 +55,8 @@ class BeatBox : public ARDOUR::Processor {
void silence (samplecnt_t nframes, samplepos_t start_frame);
bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
XMLNode& state();
XMLNode& get_state(void);
XMLNode& state() const;
XMLNode& get_state () const;
bool fill_source (boost::shared_ptr<Source>);

View File

@ -43,7 +43,7 @@ public: // Processor overrides
bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
protected:
XMLNode& state ();
XMLNode& state () const;
private:
void realloc_buffers();

View File

@ -82,7 +82,7 @@ class LIBARDOUR_API ControlProtocolManager : public PBD::Stateful, public ARDOUR
static const std::string state_node_name;
int set_state (const XMLNode&, int version);
XMLNode& get_state (void);
XMLNode& get_state () const;
PBD::Signal1<void,ControlProtocolInfo*> ProtocolStatusChange;
@ -93,7 +93,7 @@ class LIBARDOUR_API ControlProtocolManager : public PBD::Stateful, public ARDOUR
ControlProtocolManager ();
static ControlProtocolManager* _instance;
Glib::Threads::RWLock protocols_lock;
mutable Glib::Threads::RWLock protocols_lock;
std::list<ControlProtocol*> control_protocols;
void session_going_away ();

View File

@ -51,7 +51,7 @@ public:
void flush ();
protected:
XMLNode& state ();
XMLNode& state () const;
private:
void allocate_pending_buffers (samplecnt_t, ChanCount const&);

View File

@ -114,7 +114,7 @@ public:
virtual uint32_t pan_outs() const;
protected:
XMLNode& state ();
XMLNode& state () const;
Role _role;
BufferSet* _output_buffers;

View File

@ -146,7 +146,7 @@ protected:
bool initialized;
};
XMLNode& state ();
XMLNode& state () const;
void resolve_tracker (Evoral::EventSink<samplepos_t>& buffer, samplepos_t time);

View File

@ -136,7 +136,7 @@ protected:
void resize (samplecnt_t);
};
virtual XMLNode& state ();
virtual XMLNode& state () const;
int use_playlist (DataType, boost::shared_ptr<Playlist>);

View File

@ -48,7 +48,7 @@ class LIBARDOUR_API ExportChannelConfiguration : public boost::enable_shared_fro
bool operator== (ExportChannelConfiguration const & other) const { return channels == other.channels; }
bool operator!= (ExportChannelConfiguration const & other) const { return channels != other.channels; }
XMLNode & get_state ();
XMLNode & get_state () const;
int set_state (const XMLNode &);
typedef std::list<ExportChannelPtr> ChannelList;

View File

@ -58,7 +58,7 @@ class LIBARDOUR_API ExportFilename {
public:
/* Serialization */
XMLNode & get_state ();
XMLNode & get_state () const;
int set_state (const XMLNode &);
/* data access */
@ -122,9 +122,9 @@ class LIBARDOUR_API ExportFilename {
typedef std::pair<bool, std::string> FieldPair;
void add_field (XMLNode * node, std::string const & name, bool enabled, std::string const & value = "");
static void add_field (XMLNode * node, std::string const & name, bool enabled, std::string const & value = "");
FieldPair get_field (XMLNode const & node, std::string const & name);
FieldPair analyse_folder ();
FieldPair analyse_folder () const;
};

View File

@ -55,7 +55,7 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase {
/* Serialization */
XMLNode & get_state ();
XMLNode & get_state () const;
int set_state (const XMLNode & node);
private:
@ -201,7 +201,7 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase {
/* Serialization */
XMLNode & get_state ();
XMLNode & get_state () const;
int set_state (const XMLNode & root);
@ -256,8 +256,8 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase {
/* serialization helpers */
void add_option (XMLNode * node, std::string const & name, std::string const & value);
std::string get_option (XMLNode const * node, std::string const & name);
static void add_option (XMLNode * node, std::string const & name, std::string const & value);
static std::string get_option (XMLNode const * node, std::string const & name);
};

View File

@ -46,7 +46,7 @@ public:
void set_playback_offset (samplecnt_t cnt);
protected:
XMLNode& state ();
XMLNode& state () const;
private:
/** sends that we are receiving data from */

View File

@ -64,7 +64,7 @@ public:
static PBD::Signal1<void, pframes_t> CycleStart;
protected:
XMLNode& state();
XMLNode& state() const;
private:
BufferSet mixbufs;

View File

@ -152,7 +152,7 @@ public:
*/
PBD::Signal2<void, IOChange, void *> changed;
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
int set_state_2X (const XMLNode&, int, bool);
@ -198,7 +198,7 @@ public:
int set_ports (const std::string& str);
protected:
virtual XMLNode& state ();
virtual XMLNode& state () const;
Direction _direction;
DataType _default_type;

View File

@ -76,7 +76,7 @@ public:
PBD::Signal2<void,IOProcessor*,bool> AutomationPlaybackChanged;
PBD::Signal2<void,IOProcessor*,uint32_t> AutomationChanged;
XMLNode& state ();
XMLNode& state () const;
int set_state (const XMLNode&, int version);
static void prepare_for_reset (XMLNode& state, const std::string& name);

View File

@ -158,9 +158,9 @@ public:
/* CD Track / CD-Text info */
std::map<std::string, std::string> cd_info;
XMLNode& cd_info_node (const std::string &, const std::string &);
static XMLNode& cd_info_node (const std::string &, const std::string &);
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
Temporal::TimeDomain position_time_domain() const { return _start.time_domain(); }
@ -216,7 +216,7 @@ public:
void ripple (timepos_t const & at, timecnt_t const & distance, bool include_locked, bool notify);
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
Location *get_location_by_id(PBD::ID);

View File

@ -89,7 +89,7 @@ public:
PBD::Signal1<void, MeterType> MeterTypeChanged;
protected:
XMLNode& state ();
XMLNode& state () const;
private:
friend class IO;

View File

@ -73,7 +73,7 @@ public:
virtual void undo () = 0;
virtual int set_state (const XMLNode&, int version) = 0;
virtual XMLNode & get_state () = 0;
virtual XMLNode & get_state () const = 0;
boost::shared_ptr<MidiModel> model() const { return _model; }
@ -101,7 +101,7 @@ public:
void undo ();
int set_state (const XMLNode&, int version);
XMLNode & get_state ();
XMLNode & get_state () const;
void add (const NotePtr note);
void remove (const NotePtr note);
@ -149,10 +149,10 @@ public:
std::set<NotePtr> side_effect_removals;
XMLNode &marshal_change(const NoteChange&);
XMLNode &marshal_change(const NoteChange&) const;
NoteChange unmarshal_change(XMLNode *xml_note);
XMLNode &marshal_note(const NotePtr note);
XMLNode &marshal_note(const NotePtr note) const;
NotePtr unmarshal_note(XMLNode *xml_note);
};
@ -166,7 +166,7 @@ public:
};
int set_state (const XMLNode&, int version);
XMLNode & get_state ();
XMLNode & get_state () const;
void remove (SysExPtr sysex);
void operator() ();
@ -189,7 +189,7 @@ public:
std::list<SysExPtr> _removed;
XMLNode & marshal_change (const Change &);
XMLNode & marshal_change (const Change &) const;
Change unmarshal_change (XMLNode *);
};
@ -199,7 +199,7 @@ public:
PatchChangeDiffCommand (boost::shared_ptr<MidiModel>, const XMLNode &);
int set_state (const XMLNode &, int version);
XMLNode & get_state ();
XMLNode & get_state () const;
void operator() ();
void undo ();
@ -245,10 +245,10 @@ public:
std::list<PatchChangePtr> _added;
std::list<PatchChangePtr> _removed;
XMLNode & marshal_change (const Change &);
XMLNode & marshal_change (const Change &) const;
Change unmarshal_change (XMLNode *);
XMLNode & marshal_patch_change (constPatchChangePtr);
XMLNode & marshal_patch_change (constPatchChangePtr) const;
PatchChangePtr unmarshal_patch_change (XMLNode *);
};
@ -294,7 +294,7 @@ public:
// MidiModel doesn't use the normal AutomationList serialisation code
// since controller data is stored in the .mid
XMLNode& get_state();
XMLNode& get_state() const;
int set_state(const XMLNode&) { return 0; }
PBD::Signal0<void> ContentsChanged;

View File

@ -82,7 +82,7 @@ class LIBARDOUR_API MidiRegion : public Region
uint32_t chan_n = 0,
NoteMode mode = Sustained) const;
XMLNode& state ();
XMLNode& state () const;
int set_state (const XMLNode&, int version);
int separate_by_channel (std::vector< boost::shared_ptr<Region> >&) const;

View File

@ -49,7 +49,7 @@ class MIDISceneChange : public SceneChange
size_t get_bank_lsb_message (uint8_t* buf, size_t size) const;
size_t get_program_message (uint8_t* buf, size_t size) const;
XMLNode& get_state();
XMLNode& get_state() const;
int set_state (const XMLNode&, int version);
bool operator==(const MIDISceneChange& other) const;

View File

@ -163,7 +163,7 @@ class LIBARDOUR_API MidiSource : virtual public Source
virtual void session_saved();
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
bool length_mutable() const { return true; }

View File

@ -146,7 +146,7 @@ public:
protected:
XMLNode& state (bool save_template);
XMLNode& state (bool save_template) const;
void act_on_mute ();
void monitoring_changed (bool, PBD::Controllable::GroupControlDisposition);

View File

@ -43,7 +43,7 @@ class LIBARDOUR_API MonitorControl : public SlavableAutomationControl
MonitorState monitoring_state () const { return _monitorable.monitoring_state(); }
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
protected:
void actually_set_value (double, PBD::Controllable::GroupControlDisposition group_override);

View File

@ -129,7 +129,7 @@ public:
void run (BufferSet& /*bufs*/, samplepos_t /*start_sample*/, samplepos_t /*end_sample*/, double /*speed*/, pframes_t /*nframes*/, bool /*result_required*/);
XMLNode& state ();
XMLNode& state () const;
int set_state (const XMLNode&, int /* version */);
bool configure_io (ChanCount in, ChanCount out);

View File

@ -34,7 +34,7 @@ public:
void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool);
protected:
XMLNode& state ();
XMLNode& state () const;
uint32_t _nch;
gain_t _gain;

View File

@ -77,7 +77,7 @@ public:
PBD::Signal0<void> MutePointChanged;
XMLNode& get_state();
XMLNode& get_state() const;
int set_state(const XMLNode&, int version);
static const std::string xml_node_name;

View File

@ -72,13 +72,13 @@ public:
bool writing() const { return _auto_state == Write; }
bool touch_enabled() const { return _auto_state & (Touch | Latch); }
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
bool has_state() const { return _has_state; }
protected:
virtual XMLNode& state ();
virtual XMLNode& state () const;
boost::weak_ptr<Panner> _panner;
AutoState _auto_state;

View File

@ -128,7 +128,7 @@ public:
pan_t** buffers);
int set_state (const XMLNode&, int version);
XMLNode& get_state ();
XMLNode& get_state () const;
boost::shared_ptr<Pannable> pannable() const { return _pannable; }

View File

@ -62,7 +62,7 @@ public:
/// The fundamental Panner function
void run (BufferSet& src, BufferSet& dest, samplepos_t start_sample, samplepos_t end_samples, pframes_t nframes);
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
PBD::Signal0<void> PannableChanged; /* Pannable changed -- l*/

View File

@ -57,7 +57,7 @@ class LIBARDOUR_API PhaseControl : public AutomationControl
void resize (uint32_t);
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
protected:
void actually_set_value (double, PBD::Controllable::GroupControlDisposition group_override);

View File

@ -241,7 +241,7 @@ public:
void foreach_region (boost::function<void(boost::shared_ptr<Region>)>);
XMLNode& get_state ();
XMLNode& get_state () const;
virtual int set_state (const XMLNode&, int version);
XMLNode& get_template ();
@ -304,7 +304,7 @@ protected:
class RegionReadLock : public Glib::Threads::RWLock::ReaderLock
{
public:
RegionReadLock (Playlist* pl)
RegionReadLock (Playlist const * pl)
: Glib::Threads::RWLock::ReaderLock (pl->region_lock)
{
}
@ -424,7 +424,7 @@ protected:
virtual void remove_dependents (boost::shared_ptr<Region> /*region*/) {}
virtual void region_going_away (boost::weak_ptr<Region> /*region*/) {}
virtual XMLNode& state (bool);
virtual XMLNode& state (bool) const;
bool add_region_internal (boost::shared_ptr<Region>, timepos_t const & position, ThawList& thawlist);

View File

@ -52,7 +52,7 @@ protected:
timepos_t const & begin, timepos_t const & len, Source::Flag flags);
PlaylistSource (Session&, const XMLNode&);
void add_state (XMLNode&);
void add_state (XMLNode&) const;
};
} /* namespace */

View File

@ -77,7 +77,7 @@ public:
Plugin (const Plugin&);
virtual ~Plugin ();
XMLNode& get_state ();
XMLNode& get_state () const;
virtual int set_state (const XMLNode&, int version);
virtual void set_insert_id (PBD::ID id) {}

View File

@ -211,7 +211,7 @@ public:
double get_value (void) const;
void catch_up_with_external_value (double val);
XMLNode& get_state();
XMLNode& get_state() const;
std::string get_user_string() const;
private:
@ -228,7 +228,7 @@ public:
boost::shared_ptr<AutomationList> list=boost::shared_ptr<AutomationList>());
double get_value (void) const;
XMLNode& get_state();
XMLNode& get_state() const;
protected:
void actually_set_value (double value, PBD::Controllable::GroupControlDisposition);
@ -316,7 +316,7 @@ public:
};
protected:
XMLNode& state ();
XMLNode& state () const;
private:
/* disallow copy construction */

View File

@ -41,7 +41,7 @@ public:
}
protected:
XMLNode& state ();
XMLNode& state () const;
private:
boost::shared_ptr<PhaseControl> _control;

View File

@ -150,7 +150,7 @@ public:
_global_port_buffer_offset += n;
}
virtual XMLNode& get_state (void) const;
virtual XMLNode& get_state () const;
virtual int set_state (const XMLNode&, int version);
static std::string state_node_name;

View File

@ -81,7 +81,7 @@ public:
static std::string name_and_id_new_insert (Session&, uint32_t&);
protected:
XMLNode& state ();
XMLNode& state () const;
private:
/* disallow copy construction */
PortInsert (const PortInsert&);

View File

@ -235,7 +235,7 @@ class LIBARDOUR_API PresentationInfo : public PBD::Stateful
}
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
bool operator==(PresentationInfo const& other) {
return (_order == other.order()) && (_flags == other.flags());

View File

@ -131,7 +131,7 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public
smoothly.
*/
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
virtual void set_pre_fader (bool);
@ -158,7 +158,7 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public
SessionObject* owner() const;
protected:
virtual XMLNode& state ();
virtual XMLNode& state () const;
virtual int set_state_2X (const XMLNode&, int version);
bool check_active () { return (_active = _pending_active); }

View File

@ -45,8 +45,8 @@ class LIBARDOUR_API RCConfiguration : public PBD::Configuration
void map_parameters (boost::function<void (std::string)>&);
int set_state (XMLNode const &, int version);
XMLNode& get_state ();
XMLNode& get_variables ();
XMLNode& get_state () const;
XMLNode& get_variables () const;
void set_variables (XMLNode const &);
int load_state ();

View File

@ -345,7 +345,7 @@ public:
/* serialization */
XMLNode& get_state ();
XMLNode& get_state () const;
virtual int set_state (const XMLNode&, int version);
virtual bool do_export (std::string const&) const = 0;
@ -422,7 +422,7 @@ public:
void rename_cue_marker (CueMarker&, std::string const &);
protected:
virtual XMLNode& state ();
virtual XMLNode& state () const;
friend class RegionFactory;

View File

@ -61,7 +61,7 @@ public:
static std::string name_and_id_new_return (Session&, uint32_t&);
protected:
XMLNode& state();
XMLNode& state() const;
bool _metering;
boost::shared_ptr<GainControl> _gain_control;

View File

@ -221,9 +221,9 @@ public:
void flush_processors ();
void foreach_processor (boost::function<void(boost::weak_ptr<Processor>)> method) {
void foreach_processor (boost::function<void(boost::weak_ptr<Processor>)> method) const {
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) {
method (boost::weak_ptr<Processor> (*i));
}
}
@ -413,7 +413,7 @@ public:
PBD::Signal0<void> io_changed;
/* stateful */
XMLNode& get_state();
XMLNode& get_state() const;
XMLNode& get_template();
virtual int set_state (const XMLNode&, int version);
@ -692,7 +692,7 @@ protected:
virtual ChanCount input_streams () const;
virtual XMLNode& state (bool save_template);
virtual XMLNode& state (bool save_template) const;
int configure_processors (ProcessorStreams*);

View File

@ -146,7 +146,7 @@ public:
/** Emitted when a route has been removed from this group */
PBD::Signal2<void, RouteGroup *, boost::weak_ptr<ARDOUR::Route> > RouteRemoved;
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);

View File

@ -63,7 +63,7 @@ public:
/* Replicate the API of PBD::Stateful without the overhead */
XMLNode& get_state (void) const;
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
private:

View File

@ -76,7 +76,7 @@ class LIBARDOUR_API CoreSelection : public PBD::Stateful {
void get_stripables (StripableAutomationControls&) const;
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
protected:

View File

@ -114,7 +114,7 @@ public:
static std::string name_and_id_new_send (Session&, Delivery::Role r, uint32_t&, bool);
protected:
XMLNode& state ();
XMLNode& state () const;
bool _metering;
boost::shared_ptr<GainControl> _gain_control;

View File

@ -1601,7 +1601,7 @@ private:
PBD::ReallocPool _mempool;
LuaState lua;
Glib::Threads::Mutex lua_lock;
mutable Glib::Threads::Mutex lua_lock;
luabridge::LuaRef * _lua_run;
luabridge::LuaRef * _lua_add;
luabridge::LuaRef * _lua_del;
@ -2097,12 +2097,14 @@ private:
XMLNode& state (bool save_template,
snapshot_t snapshot_type = NormalSave,
bool only_used_assets = false);
bool only_used_assets = false) const;
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode& node, int version); // not idempotent
XMLNode& get_template ();
void maybe_copy_midifiles (snapshot_t, boost::shared_ptr<Source> src, XMLNode*);
/* click track */
typedef std::list<Click*> Clicks;
Clicks clicks;
@ -2180,7 +2182,7 @@ private:
void config_changed (std::string, bool);
XMLNode& get_control_protocol_state ();
XMLNode& get_control_protocol_state () const;
void set_history_depth (uint32_t depth);
@ -2329,7 +2331,7 @@ private:
int tb_with_filled_slots;
void handle_slots_empty_status (boost::weak_ptr<Route> const &);
};
};
} // namespace ARDOUR

View File

@ -32,8 +32,8 @@ public:
void map_parameters (boost::function<void (std::string)>&);
int set_state (XMLNode const &, int version);
XMLNode& get_state ();
XMLNode& get_variables ();
XMLNode& get_state () const;
XMLNode& get_variables () const;
void set_variables (XMLNode const &);
bool load_state ();

View File

@ -138,8 +138,8 @@ class LIBARDOUR_API SessionMetadata : public PBD::StatefulDestructible
void av_export_tag (MetaDataMap&) const;
/*** Serialization ***/
XMLNode & get_state (); //serializes stuff in the map, to be stored in session file
XMLNode & get_user_state (); //serializes stuff in the user_map, to be stored in user's config file
XMLNode& get_state () const; //serializes stuff in the map, to be stored in session file
XMLNode& get_user_state (); //serializes stuff in the user_map, to be stored in user's config file
int set_state (const XMLNode &, int version_num);
private:
@ -151,7 +151,7 @@ class LIBARDOUR_API SessionMetadata : public PBD::StatefulDestructible
PropertyMap map;
PropertyMap user_map;
XMLNode * get_xml (const std::string & name);
XMLNode * get_xml (const std::string & name) const;
std::string get_value (const std::string & name) const;
uint32_t get_uint_value (const std::string & name) const;

View File

@ -81,7 +81,7 @@ private:
void find_equivalent_playlist_regions (boost::shared_ptr<Region>, std::vector<boost::shared_ptr<Region> >& result);
void update_after_tempo_map_change ();
void add_state (XMLNode*, bool save_template, bool include_unused);
void add_state (XMLNode*, bool save_template, bool include_unused) const;
bool maybe_delete_unused (boost::function<int(boost::shared_ptr<Playlist>)>);
int load (Session &, const XMLNode&);
int load_unused (Session &, const XMLNode&);

View File

@ -41,7 +41,7 @@ public:
int set_state(const XMLNode&, int version);
protected:
XMLNode& state ();
XMLNode& state () const;
private:
/* disallow copy construction */

View File

@ -74,7 +74,7 @@ public:
void use_saved_master_ratios ();
int set_state (XMLNode const&, int);
XMLNode& get_state();
XMLNode& get_state() const;
bool find_next_event (Temporal::timepos_t const & n, Temporal::timepos_t const & e, Evoral::ControlEvent& ev) const
{

View File

@ -64,7 +64,7 @@ public:
Evoral::Sequence<Temporal::Beats>::StuckNoteOption,
Temporal::Beats when = Temporal::Beats());
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
void load_model (const WriterLock& lock, bool force_reload=false);

View File

@ -94,7 +94,7 @@ class LIBARDOUR_API SoloControl : public SlavableAutomationControl
void clear_all_solo_state ();
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
protected:
void actually_set_value (double, PBD::Controllable::GroupControlDisposition group_override);

View File

@ -70,7 +70,7 @@ class LIBARDOUR_API SoloIsolateControl : public SlavableAutomationControl
bool solo_isolated() const { return self_solo_isolated() || solo_isolated_by_upstream(); }
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
protected:
void master_changed (bool from_self, PBD::Controllable::GroupControlDisposition gcd, boost::weak_ptr<AutomationControl>);

View File

@ -41,7 +41,7 @@ class LIBARDOUR_API SoloSafeControl : public SlavableAutomationControl
bool solo_safe() const { return _solo_safe; }
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
protected:
void actually_set_value (double, PBD::Controllable::GroupControlDisposition group_override);

View File

@ -91,7 +91,7 @@ public:
virtual void session_saved() {}
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (XMLNode const &, int version);
bool writable () const;

View File

@ -52,7 +52,7 @@ public:
void dump_speakers (std::ostream&);
XMLNode& get_state ();
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
PBD::Signal0<void> Changed;

View File

@ -115,7 +115,7 @@ class Step : public PBD::Stateful {
int octave_shift() const { return _octave_shift; }
void set_octave_shift (int);
XMLNode& get_state();
XMLNode& get_state() const;
int set_state (XMLNode const &, int);
void dump (MusicTimeEvents&, Temporal::Beats const&) const;
@ -208,7 +208,7 @@ class StepSequence : public PBD::Stateful
StepSequencer& sequencer() const { return _sequencer; }
XMLNode& get_state();
XMLNode& get_state() const;
int set_state (XMLNode const &, int);
void dump (MusicTimeEvents&, Temporal::Beats const &) const;
@ -257,7 +257,7 @@ class StepSequencer : public PBD::Stateful
TempoMap& tempo_map() const { return _tempo_map; }
XMLNode& get_state();
XMLNode& get_state() const;
int set_state (XMLNode const &, int);
void queue_note_off (Temporal::Beats const &, uint8_t note, uint8_t velocity, uint8_t channel);

View File

@ -184,7 +184,7 @@ public:
PBD::Signal0<void> ChanCountChanged;
protected:
XMLNode& state (bool save_template);
XMLNode& state (bool save_template) const;
boost::shared_ptr<Playlist> _playlists[DataType::num_types];

View File

@ -355,7 +355,7 @@ public:
void set_name (std::string const&);
int set_state (XMLNode const&, int);
XMLNode& get_state ();
XMLNode& get_state () const;
static const std::string state_node_name;
static void make_property_quarks ();
@ -435,7 +435,7 @@ protected:
boost::shared_ptr<Port> _port;
XMLNode port_node;
mutable XMLNode port_node;
virtual void connection_handler (boost::weak_ptr<ARDOUR::Port>, std::string name1, boost::weak_ptr<ARDOUR::Port>, std::string name2, bool yn);

View File

@ -70,7 +70,7 @@ class LIBARDOUR_API TransportMasterManager : public boost::noncopyable
PBD::Signal2<void,boost::shared_ptr<TransportMaster>, boost::shared_ptr<TransportMaster> > CurrentChanged;
int set_state (XMLNode const &, int);
XMLNode& get_state();
XMLNode& get_state() const;
void set_session (Session*);
Session* session() const { return _session; }

View File

@ -317,7 +317,7 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
samplepos_t transition_samples;
Temporal::Beats transition_beats;
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
void maybe_compute_next_transition (samplepos_t start_sample, Temporal::Beats const & start, Temporal::Beats const & end, pframes_t& nframes, pframes_t& dest_offset);
@ -503,7 +503,7 @@ class LIBARDOUR_API AudioTrigger : public Trigger {
void jump_start ();
void jump_stop (BufferSet& bufs, pframes_t dest_offset);
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
RubberBand::RubberBandStretcher* stretcher() { return (_stretcher); }
@ -579,7 +579,7 @@ class LIBARDOUR_API MIDITrigger : public Trigger {
void shutdown (BufferSet& bufs, pframes_t dest_offset);
void jump_stop (BufferSet& bufs, pframes_t dest_offset);
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
SegmentDescriptor get_segment_descriptor () const;
@ -726,7 +726,7 @@ class LIBARDOUR_API TriggerBox : public Processor
void set_pending (uint32_t slot, Trigger*);
XMLNode& get_state (void);
XMLNode& get_state () const;
int set_state (const XMLNode&, int version);
void set_from_path (uint32_t slot, std::string const & path);
@ -813,7 +813,7 @@ class LIBARDOUR_API TriggerBox : public Processor
DataType _data_type;
int32_t _order;
Glib::Threads::RWLock trigger_lock; /* protects all_triggers */
mutable Glib::Threads::RWLock trigger_lock; /* protects all_triggers */
Triggers all_triggers;
typedef std::vector<Trigger*> PendingTriggers;

View File

@ -52,7 +52,7 @@ public:
void run (BufferSet& /*bufs*/, samplepos_t /*start_sample*/, samplepos_t /*end_sample*/, double /*speed*/, pframes_t /*nframes*/, bool /*result_required*/);
protected:
XMLNode& state ();
XMLNode& state () const;
private:
XMLNode _state;

View File

@ -35,7 +35,7 @@ class LIBARDOUR_API UserBundle : public Bundle, public PBD::Stateful {
UserBundle (std::string const &);
UserBundle (XMLNode const &, bool);
XMLNode& get_state ();
XMLNode& get_state () const;
private:
int set_state (XMLNode const &, int version);

View File

@ -59,7 +59,7 @@ class LIBARDOUR_API VCA : public Stripable,
std::string full_name() const;
int init ();
XMLNode& get_state();
XMLNode& get_state() const;
int set_state (XMLNode const&, int version);
PBD::Signal0<void> Drop; /* signal to slaves to drop control by this VCA */

View File

@ -56,7 +56,7 @@ public:
PBD::Signal1<void,VCAList&> VCAAdded;
PBD::Signal0<void> VCACreated; /*<< is not emitted during set_state */
XMLNode& get_state();
XMLNode& get_state() const;
int set_state (XMLNode const&, int version);
bool vcas_loaded() const { return _vcas_loaded; }

View File

@ -78,7 +78,7 @@ AudioPlaylistSource::~AudioPlaylistSource ()
}
XMLNode&
AudioPlaylistSource::get_state ()
AudioPlaylistSource::get_state () const
{
XMLNode& node (AudioSource::get_state ());

View File

@ -100,7 +100,7 @@ AudioTrack::set_state (const XMLNode& node, int version)
}
XMLNode&
AudioTrack::state (bool save_template)
AudioTrack::state (bool save_template) const
{
XMLNode& root (Track::state (save_template));
XMLNode* freeze_node;
@ -113,7 +113,7 @@ AudioTrack::state (bool save_template)
freeze_node->set_property ("playlist-id", _freeze_record.playlist->id().to_s ());
freeze_node->set_property ("state", _freeze_record.state);
for (vector<FreezeRecordProcessorInfo*>::iterator i = _freeze_record.processor_info.begin(); i != _freeze_record.processor_info.end(); ++i) {
for (vector<FreezeRecordProcessorInfo*>::const_iterator i = _freeze_record.processor_info.begin(); i != _freeze_record.processor_info.end(); ++i) {
inode = new XMLNode (X_("processor"));
inode->set_property (X_ ("id"), (*i)->id.to_s ());
inode->add_child_copy ((*i)->state);

View File

@ -221,7 +221,7 @@ AudioFileSource::get_soundfile_info (const string& path, SoundFileInfo& _info, s
}
XMLNode&
AudioFileSource::get_state ()
AudioFileSource::get_state () const
{
XMLNode& root (AudioSource::get_state());
root.set_property (X_("channel"), _channel);

View File

@ -789,7 +789,7 @@ AudioRegion::read_from_sources (SourceList const & srcs, samplecnt_t limit, Samp
}
XMLNode&
AudioRegion::get_basic_state ()
AudioRegion::get_basic_state () const
{
XMLNode& node (Region::state ());
@ -799,7 +799,7 @@ AudioRegion::get_basic_state ()
}
XMLNode&
AudioRegion::state ()
AudioRegion::state () const
{
XMLNode& node (get_basic_state());
XMLNode *child;

View File

@ -131,7 +131,7 @@ AudioSource::~AudioSource ()
}
XMLNode&
AudioSource::get_state ()
AudioSource::get_state () const
{
XMLNode& node (Source::get_state());

View File

@ -308,7 +308,7 @@ Automatable::set_automation_xml_state (const XMLNode& node, Evoral::Parameter le
}
XMLNode&
Automatable::get_automation_xml_state ()
Automatable::get_automation_xml_state () const
{
Glib::Threads::Mutex::Lock lm (control_lock());
XMLNode* node = new XMLNode (Automatable::xml_node_name);
@ -317,7 +317,7 @@ Automatable::get_automation_xml_state ()
return *node;
}
for (Controls::iterator li = controls().begin(); li != controls().end(); ++li) {
for (Controls::const_iterator li = controls().begin(); li != controls().end(); ++li) {
boost::shared_ptr<AutomationList> l = boost::dynamic_pointer_cast<AutomationList>(li->second->list());
if (l) {
node->add_child_nocopy (l->get_state ());

View File

@ -323,13 +323,13 @@ AutomationList::memento_command (XMLNode* before, XMLNode* after)
}
XMLNode&
AutomationList::get_state ()
AutomationList::get_state () const
{
return state (true, true);
}
XMLNode&
AutomationList::state (bool save_auto_state, bool need_lock)
AutomationList::state (bool save_auto_state, bool need_lock) const
{
XMLNode* root = new XMLNode (X_("AutomationList"));
@ -364,7 +364,7 @@ AutomationList::state (bool save_auto_state, bool need_lock)
}
XMLNode&
AutomationList::serialize_events (bool need_lock)
AutomationList::serialize_events (bool need_lock) const
{
XMLNode* node = new XMLNode (X_("events"));
stringstream str;
@ -373,7 +373,7 @@ AutomationList::serialize_events (bool need_lock)
if (need_lock) {
lm.acquire ();
}
for (iterator xx = _events.begin(); xx != _events.end(); ++xx) {
for (const_iterator xx = _events.begin(); xx != _events.end(); ++xx) {
str << PBD::to_string ((*xx)->when);
str << ' ';
str << PBD::to_string ((*xx)->value);

View File

@ -78,13 +78,13 @@ BeatBox::can_support_io_configuration (const ChanCount& in, ChanCount& out)
}
XMLNode&
BeatBox::get_state(void)
BeatBox::get_state () const
{
return state ();
}
XMLNode&
BeatBox::state()
BeatBox::state() const
{
XMLNode& node = Processor::state();
node.set_property ("type", "beatbox");

View File

@ -84,7 +84,7 @@ CapturingProcessor::realloc_buffers()
}
XMLNode &
CapturingProcessor::state ()
CapturingProcessor::state () const
{
XMLNode& node = Processor::state ();

View File

@ -527,12 +527,12 @@ ControlProtocolManager::set_state (const XMLNode& node, int session_specific_sta
}
XMLNode&
ControlProtocolManager::get_state ()
ControlProtocolManager::get_state () const
{
XMLNode* root = new XMLNode (state_node_name);
Glib::Threads::RWLock::ReaderLock lm (protocols_lock);
for (list<ControlProtocolInfo*>::iterator i = control_protocol_info.begin(); i != control_protocol_info.end(); ++i) {
for (list<ControlProtocolInfo*>::const_iterator i = control_protocol_info.begin(); i != control_protocol_info.end(); ++i) {
if ((*i)->protocol) {
XMLNode& child_state ((*i)->protocol->get_state());

View File

@ -432,7 +432,7 @@ DelayLine::flush ()
}
XMLNode&
DelayLine::state ()
DelayLine::state () const
{
XMLNode& node (Processor::state ());
node.set_property ("type", "delay");

View File

@ -356,7 +356,7 @@ Delivery::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample
}
XMLNode&
Delivery::state ()
Delivery::state () const
{
XMLNode& node (IOProcessor::state ());

View File

@ -166,7 +166,7 @@ DiskReader::set_name (string const& str)
}
XMLNode&
DiskReader::state ()
DiskReader::state () const
{
XMLNode& node (DiskIOProcessor::state ());
node.set_property (X_("type"), X_("diskreader"));

View File

@ -367,7 +367,7 @@ DiskWriter::set_align_style (AlignStyle a, bool force)
}
XMLNode&
DiskWriter::state ()
DiskWriter::state () const
{
XMLNode& node (DiskIOProcessor::state ());
node.set_property (X_("type"), X_("diskwriter"));

View File

@ -40,7 +40,7 @@ ExportChannelConfiguration::ExportChannelConfiguration (Session & session)
}
XMLNode &
ExportChannelConfiguration::get_state ()
ExportChannelConfiguration::get_state () const
{
XMLNode * root = new XMLNode ("ExportChannelConfiguration");
XMLNode * channel;

View File

@ -83,7 +83,7 @@ ExportFilename::ExportFilename (Session & session) :
}
XMLNode &
ExportFilename::get_state ()
ExportFilename::get_state () const
{
XMLNode * node = new XMLNode ("ExportFilename");
XMLNode * child;
@ -399,7 +399,7 @@ ExportFilename::get_field (XMLNode const & node, string const & name)
}
ExportFilename::FieldPair
ExportFilename::analyse_folder ()
ExportFilename::analyse_folder () const
{
FieldPair pair;

View File

@ -68,7 +68,7 @@ ExportFormatSpecification::Time::get_samples_at (samplepos_t position, samplecnt
}
XMLNode &
ExportFormatSpecification::Time::get_state ()
ExportFormatSpecification::Time::get_state () const
{
XMLNode * node = new XMLNode ("Duration");
@ -274,7 +274,7 @@ ExportFormatSpecification::~ExportFormatSpecification ()
}
XMLNode &
ExportFormatSpecification::get_state ()
ExportFormatSpecification::get_state () const
{
XMLNode * node;
XMLNode * root = new XMLNode ("ExportFormatSpecification");

View File

@ -80,7 +80,7 @@ InternalReturn::set_playback_offset (samplecnt_t cnt)
}
XMLNode&
InternalReturn::state ()
InternalReturn::state () const
{
XMLNode& node (Processor::state ());
/* override type */

View File

@ -380,7 +380,7 @@ InternalSend::feeds (boost::shared_ptr<Route> other) const
}
XMLNode&
InternalSend::state ()
InternalSend::state () const
{
XMLNode& node (Send::state ());

View File

@ -519,13 +519,13 @@ IO::ensure_io (ChanCount count, bool clear, void* src)
}
XMLNode&
IO::get_state ()
IO::get_state () const
{
return state ();
}
XMLNode&
IO::state ()
IO::state () const
{
XMLNode* node = new XMLNode (state_node_name);
int n;
@ -540,7 +540,7 @@ IO::state ()
node->set_property("pretty-name", _pretty_name_prefix);
}
for (PortSet::iterator i = _ports.begin(); i != _ports.end(); ++i) {
for (PortSet::const_iterator i = _ports.begin(); i != _ports.end(); ++i) {
vector<string> connections;

View File

@ -116,7 +116,7 @@ IOProcessor::set_output (boost::shared_ptr<IO> io)
}
XMLNode&
IOProcessor::state ()
IOProcessor::state () const
{
XMLNode& node (Processor::state ());

View File

@ -554,7 +554,7 @@ Location::cd_info_node(const string & name, const string & value)
XMLNode&
Location::get_state ()
Location::get_state () const
{
XMLNode *node = new XMLNode ("Location");
@ -1105,14 +1105,13 @@ Locations::remove (Location *loc)
}
XMLNode&
Locations::get_state ()
Locations::get_state () const
{
XMLNode *node = new XMLNode ("Locations");
LocationList::iterator iter;
Glib::Threads::RWLock::ReaderLock lm (_lock);
for (iter = locations.begin(); iter != locations.end(); ++iter) {
node->add_child_nocopy ((*iter)->get_state ());
for (auto const & l : locations) {
node->add_child_nocopy (l->get_state ());
}
return *node;

View File

@ -461,7 +461,7 @@ PeakMeter::set_meter_type (MeterType t)
}
XMLNode&
PeakMeter::state ()
PeakMeter::state () const
{
XMLNode& node (Processor::state ());
node.set_property ("type", "meter");

View File

@ -437,7 +437,7 @@ MidiModel::NoteDiffCommand::undo ()
}
XMLNode&
MidiModel::NoteDiffCommand::marshal_note(const NotePtr note)
MidiModel::NoteDiffCommand::marshal_note(const NotePtr note) const
{
XMLNode* xml_note = new XMLNode("note");
@ -491,7 +491,7 @@ MidiModel::NoteDiffCommand::unmarshal_note (XMLNode *xml_note)
}
XMLNode&
MidiModel::NoteDiffCommand::marshal_change (const NoteChange& change)
MidiModel::NoteDiffCommand::marshal_change (const NoteChange& change) const
{
XMLNode* xml_change = new XMLNode("Change");
@ -635,25 +635,25 @@ MidiModel::NoteDiffCommand::set_state (const XMLNode& diff_command, int /*versio
}
XMLNode&
MidiModel::NoteDiffCommand::get_state ()
MidiModel::NoteDiffCommand::get_state () const
{
XMLNode* diff_command = new XMLNode (NOTE_DIFF_COMMAND_ELEMENT);
diff_command->set_property("midi-source", _model->midi_source().id().to_s());
XMLNode* changes = diff_command->add_child(DIFF_NOTES_ELEMENT);
for_each(_changes.begin(), _changes.end(),
for_each(_changes.cbegin(), _changes.cend(),
boost::bind (
boost::bind (&XMLNode::add_child_nocopy, changes, _1),
boost::bind (&NoteDiffCommand::marshal_change, this, _1)));
XMLNode* added_notes = diff_command->add_child(ADDED_NOTES_ELEMENT);
for_each(_added_notes.begin(), _added_notes.end(),
for_each(_added_notes.cbegin(), _added_notes.cend(),
boost::bind(
boost::bind (&XMLNode::add_child_nocopy, added_notes, _1),
boost::bind (&NoteDiffCommand::marshal_note, this, _1)));
XMLNode* removed_notes = diff_command->add_child(REMOVED_NOTES_ELEMENT);
for_each(_removed_notes.begin(), _removed_notes.end(),
for_each(_removed_notes.cbegin(), _removed_notes.cend(),
boost::bind (
boost::bind (&XMLNode::add_child_nocopy, removed_notes, _1),
boost::bind (&NoteDiffCommand::marshal_note, this, _1)));
@ -761,7 +761,7 @@ MidiModel::SysExDiffCommand::remove (SysExPtr sysex)
}
XMLNode&
MidiModel::SysExDiffCommand::marshal_change (const Change& change)
MidiModel::SysExDiffCommand::marshal_change (const Change& change) const
{
XMLNode* xml_change = new XMLNode ("Change");
@ -835,7 +835,7 @@ MidiModel::SysExDiffCommand::set_state (const XMLNode& diff_command, int /*versi
}
XMLNode&
MidiModel::SysExDiffCommand::get_state ()
MidiModel::SysExDiffCommand::get_state () const
{
XMLNode* diff_command = new XMLNode (SYSEX_DIFF_COMMAND_ELEMENT);
diff_command->set_property ("midi-source", _model->midi_source().id().to_s());
@ -1040,7 +1040,7 @@ MidiModel::PatchChangeDiffCommand::undo ()
}
XMLNode &
MidiModel::PatchChangeDiffCommand::marshal_patch_change (constPatchChangePtr p)
MidiModel::PatchChangeDiffCommand::marshal_patch_change (constPatchChangePtr p) const
{
XMLNode* n = new XMLNode ("patch-change");
@ -1054,7 +1054,7 @@ MidiModel::PatchChangeDiffCommand::marshal_patch_change (constPatchChangePtr p)
}
XMLNode&
MidiModel::PatchChangeDiffCommand::marshal_change (const Change& c)
MidiModel::PatchChangeDiffCommand::marshal_change (const Change& c) const
{
XMLNode* n = new XMLNode (X_("Change"));
@ -1180,13 +1180,13 @@ MidiModel::PatchChangeDiffCommand::set_state (const XMLNode& diff_command, int /
}
XMLNode &
MidiModel::PatchChangeDiffCommand::get_state ()
MidiModel::PatchChangeDiffCommand::get_state () const
{
XMLNode* diff_command = new XMLNode (PATCH_CHANGE_DIFF_COMMAND_ELEMENT);
diff_command->set_property("midi-source", _model->midi_source().id().to_s());
XMLNode* added = diff_command->add_child (ADDED_PATCH_CHANGES_ELEMENT);
for_each (_added.begin(), _added.end(),
for_each (_added.cbegin(), _added.cend(),
boost::bind (
boost::bind (&XMLNode::add_child_nocopy, added, _1),
boost::bind (&PatchChangeDiffCommand::marshal_patch_change, this, _1)
@ -1194,7 +1194,7 @@ MidiModel::PatchChangeDiffCommand::get_state ()
);
XMLNode* removed = diff_command->add_child (REMOVED_PATCH_CHANGES_ELEMENT);
for_each (_removed.begin(), _removed.end(),
for_each (_removed.cbegin(), _removed.cend(),
boost::bind (
boost::bind (&XMLNode::add_child_nocopy, removed, _1),
boost::bind (&PatchChangeDiffCommand::marshal_patch_change, this, _1)
@ -1202,7 +1202,7 @@ MidiModel::PatchChangeDiffCommand::get_state ()
);
XMLNode* changes = diff_command->add_child (DIFF_PATCH_CHANGES_ELEMENT);
for_each (_changes.begin(), _changes.end(),
for_each (_changes.cbegin(), _changes.cend(),
boost::bind (
boost::bind (&XMLNode::add_child_nocopy, changes, _1),
boost::bind (&PatchChangeDiffCommand::marshal_change, this, _1)
@ -1336,7 +1336,7 @@ MidiModel::write_section_to (boost::shared_ptr<MidiSource> source,
}
XMLNode&
MidiModel::get_state()
MidiModel::get_state() const
{
XMLNode *node = new XMLNode("MidiModel");
return *node;

Some files were not shown because too many files have changed in this diff Show More