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

Unified Diff: lily/duration.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/arpeggio.cc ('k') | lily/flag.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/duration.cc
diff --git a/lily/duration.cc b/lily/duration.cc
index bc75c6019225d4de6ea1bb346dd89e52467f0d0a..a2374e5c3506b7169a60b78db4f6b2a41973fc03 100644
--- a/lily/duration.cc
+++ b/lily/duration.cc
@@ -133,11 +133,12 @@ Duration::to_string () const
string s;
if (durlog_ < 0)
- s = "log = " + ::to_string (durlog_);
+ s = "log = " + std::to_string (durlog_);
else
- s = ::to_string (1 << durlog_);
+ s = std::to_string (1 << durlog_);
- s += ::to_string ('.', dots_);
+ if (dots_ > 0)
+ s += string (dots_, '.');
if (factor_ != Moment (Rational (1, 1)))
s += "*" + factor_.to_string ();
return s;
« no previous file with comments | « lily/arpeggio.cc ('k') | lily/flag.cc » ('j') | no next file with comments »

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