Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(90)

Unified Diff: lily/include/spanner.hh

Issue 551320043: Issue 5650: Use C++11 "override" keyword (Closed)
Patch Set: Compile with -Werror=suggest-override, when supported Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/include/slur-engraver.hh ('k') | lily/include/stream-event.hh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/include/spanner.hh
diff --git a/lily/include/spanner.hh b/lily/include/spanner.hh
index 1f1fa3902797b73afda6695c79fada554595daa6..e228920b9d0aac3bb30a165c1722a93a411b4098 100644
--- a/lily/include/spanner.hh
+++ b/lily/include/spanner.hh
@@ -51,7 +51,7 @@ class Spanner : Preinit_Spanner, public Grob
{
vsize break_index_;
- DECLARE_CLASSNAME (Spanner);
+ OVERRIDE_CLASS_NAME (Spanner);
public:
DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM));
@@ -69,7 +69,7 @@ public:
void substitute_one_mutable_property (SCM sym, SCM val);
Interval_t<Moment> spanned_time () const;
- virtual Interval_t<int> spanned_rank_interval () const;
+ Interval_t<int> spanned_rank_interval () const override;
void set_bound (Direction d, Grob *);
// accepts_as_bound_...() are used in the implementation of set_bound ().
@@ -89,17 +89,17 @@ public:
Real spanner_length () const;
static bool less (Spanner *const &, Spanner *const &);
- virtual Spanner *find_broken_piece (System *) const;
- virtual void derived_mark () const;
- virtual System *get_system () const;
+ Spanner *find_broken_piece (System *) const override;
+ void derived_mark () const override;
+ System *get_system () const override;
SCM get_cached_pure_property (SCM sym, vsize start, vsize end);
void cache_pure_property (SCM sym, vsize start, vsize end, SCM value);
protected:
void set_my_columns ();
- virtual Spanner *clone () const { return new Spanner (*this); }
- virtual void do_break_processing ();
+ Spanner *clone () const override { return new Spanner (*this); }
+ void do_break_processing () override;
bool fast_substitute_grob_array (SCM sym, Grob_array *);
};
« no previous file with comments | « lily/include/slur-engraver.hh ('k') | lily/include/stream-event.hh » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b