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

Unified Diff: lily/include/book.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/audio-element.hh ('k') | lily/include/change-iterator.hh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/include/book.hh
diff --git a/lily/include/book.hh b/lily/include/book.hh
index 48b1aae7bc321a46868acf675959c24a1b1019d1..323f85a87b75cbacaa8506287610bbc797357587 100644
--- a/lily/include/book.hh
+++ b/lily/include/book.hh
@@ -40,7 +40,8 @@ public:
Book (Book const &);
Input *origin () const;
- VIRTUAL_COPY_CONSTRUCTOR (Book, Book);
+ VIRTUAL_CLASS_NAME (Book);
+ virtual Book *clone () const { return new Book (*this); }
Book ();
void add_score (SCM);
void add_bookpart (SCM);
« no previous file with comments | « lily/include/audio-element.hh ('k') | lily/include/change-iterator.hh » ('j') | no next file with comments »

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