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

Unified Diff: lily/pitch.cc

Issue 583320043: Issue 5659: Clean up to_string () etc. (Closed)
Patch Set: Werner's feedback 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/performance.cc ('k') | lily/program-option-scheme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/pitch.cc
diff --git a/lily/pitch.cc b/lily/pitch.cc
index 72f34d45d742abfb1bc1b1fb9af5896def21448d..98cdc0f979ebc2082592e6fedb1e3860f15650c7 100644
--- a/lily/pitch.cc
+++ b/lily/pitch.cc
@@ -154,7 +154,7 @@ string
Pitch::to_string () const
{
int n = (notename_ + 2) % scale_->step_count ();
- string s = ::to_string (char (n + 'a'));
+ string s (1, static_cast<char> (n + 'a'));
Rational qtones = alteration_ * Rational (4, 1);
int qt = int (rint (Real (qtones)));
@@ -169,7 +169,7 @@ Pitch::to_string () const
{
int o = (-octave_) - 1;
while (o--)
- s += ::to_string (',');
+ s += ',';
}
return s;
« no previous file with comments | « lily/performance.cc ('k') | lily/program-option-scheme.cc » ('j') | no next file with comments »

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