Skip to content

Commit

Permalink
Merge pull request musescore#26049 from rettinghaus/consts
Browse files Browse the repository at this point in the history
Const methods
  • Loading branch information
cbjeukendrup authored Jan 10, 2025
2 parents 8ed50c1 + ac98713 commit 37dfbd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/engraving/dom/editdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ class EditData
void addData(std::shared_ptr<ElementEditData>);
bool control(bool textEditing = false) const;
bool shift() const { return modifiers & ShiftModifier; }
bool isStartEndGrip() { return curGrip == Grip::START || curGrip == Grip::END; }
bool hasCurrentGrip() { return curGrip != Grip::NO_GRIP; }
bool isStartEndGrip() const { return curGrip == Grip::START || curGrip == Grip::END; }
bool hasCurrentGrip() const { return curGrip != Grip::NO_GRIP; }

private:
std::list<std::shared_ptr<ElementEditData> > m_data;
Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/tempotext.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TempoText final : public TextBase
BeatsPerSecond tempo() const { return m_tempo; }
double tempoBpm() const;
void setTempo(BeatsPerSecond v);
bool isRelative() { return m_isRelative; }
bool isRelative() const { return m_isRelative; }
void setRelative(double v) { m_isRelative = true; m_relative = v; }

bool isNormal() const { return m_tempoTextType == TempoTextType::NORMAL; }
Expand Down
2 changes: 1 addition & 1 deletion src/notation/view/widgets/timeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private slots:

unsigned nmetas() const;

bool collapsed() { return _collapsedMeta; }
bool collapsed() const { return _collapsedMeta; }
void setCollapsed(bool st) { _collapsedMeta = st; }

engraving::Staff* numToStaff(int staff);
Expand Down

0 comments on commit 37dfbd4

Please sign in to comment.