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

Issue 581580043: Make Pitch::to_string() more robust (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 2 months ago by hanwenn
Modified:
4 years, 2 months ago
Reviewers:
Dan Eble, lemzwerg
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Make Pitch::to_string() more robust

Patch Set 1 #

Total comments: 4

Patch Set 2 : Dan's comments #

Total comments: 2

Patch Set 3 : dan, round 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M lily/pitch.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 7
lemzwerg
LGTM
4 years, 2 months ago (2020-02-01 07:01:21 UTC) #1
Dan Eble
https://codereview.appspot.com/581580043/diff/557260048/lily/pitch.cc File lily/pitch.cc (right): https://codereview.appspot.com/581580043/diff/557260048/lily/pitch.cc#newcode162 lily/pitch.cc:162: if (qt >= 0 && qt < int (sizeof(accname) ...
4 years, 2 months ago (2020-02-01 11:19:12 UTC) #2
hanwenn
Dan's comments
4 years, 2 months ago (2020-02-01 21:07:31 UTC) #3
hanwenn
https://codereview.appspot.com/581580043/diff/557260048/lily/pitch.cc File lily/pitch.cc (right): https://codereview.appspot.com/581580043/diff/557260048/lily/pitch.cc#newcode162 lily/pitch.cc:162: if (qt >= 0 && qt < int (sizeof(accname) ...
4 years, 2 months ago (2020-02-01 21:09:18 UTC) #4
Dan Eble
I approve of your use of braces for even single-statement blocks. https://codereview.appspot.com/581580043/diff/561400052/lily/pitch.cc File lily/pitch.cc (right): ...
4 years, 2 months ago (2020-02-01 21:19:46 UTC) #5
hanwenn
dan, round 2
4 years, 2 months ago (2020-02-01 21:26:13 UTC) #6
hanwenn
4 years, 2 months ago (2020-02-01 21:26:36 UTC) #7
https://codereview.appspot.com/581580043/diff/561400052/lily/pitch.cc
File lily/pitch.cc (right):

https://codereview.appspot.com/581580043/diff/561400052/lily/pitch.cc#newcode162
lily/pitch.cc:162: if (qt < int (sizeof (accname) / sizeof (accname[0])))
On 2020/02/01 21:19:46, Dan Eble wrote:
> seems like you shouldn't need to cast it to int anymore
> aside from that, LGTM

Done.
Sign in to reply to this message.

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