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

Issue 7402052: Don't initialize dim_cache_ array via constructor syntax (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by dak
Modified:
11 years, 1 month ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Don't initialize dim_cache_ array via constructor syntax This is not valid C++ and not even a documented GCC extension. It is probabably an oversight that GCC appears to be able to interpret this in some manner.

Patch Set 1 #

Patch Set 2 : Too ugly for words. See added comment. #

Patch Set 3 : Create a custom copy constructor for Dimension_cache instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M lily/dimension-cache.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M lily/grob.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M lily/include/dimension-cache.hh View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2
dak
Too ugly for words. See added comment.
11 years, 2 months ago (2013-02-23 12:58:47 UTC) #1
dak
11 years, 2 months ago (2013-02-23 14:00:07 UTC) #2
Create a custom copy constructor for Dimension_cache instead
Sign in to reply to this message.

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