SegmentDescriptor::get_state() can be const

This commit is contained in:
Paul Davis 2022-01-13 17:29:16 -07:00
parent 154f406256
commit e00779c57d
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -115,7 +115,7 @@ SegmentDescriptor::set_meter (Meter const & m)
}
XMLNode&
SegmentDescriptor::get_state (void)
SegmentDescriptor::get_state (void) const
{
XMLNode* root = new XMLNode (X_("SegmentDescriptor"));