Merge lp:~smspillaz/compiz-core/compiz-core.vector-color-variant into lp:compiz-core/0.9.5
Proposed by
Sam Spilsbury
Status: | Rejected |
---|---|
Rejected by: | Sam Spilsbury |
Proposed branch: | lp:~smspillaz/compiz-core/compiz-core.vector-color-variant |
Merge into: | lp:compiz-core/0.9.5 |
Diff against target: |
173 lines (+87/-9) 4 files modified
include/core/abiversion.h (+1/-1) include/core/option.h (+22/-5) src/option.cpp (+1/-1) src/option/tests/option.cpp (+63/-2) |
To merge this branch: | bzr merge lp:~smspillaz/compiz-core/compiz-core.vector-color-variant |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alan Griffiths | Needs Fixing | ||
Thomas Voß | Pending | ||
Review via email: mp+90112@code.launchpad.net |
This proposal supersedes a proposal from 2012-01-25.
Description of the change
Makes color wrap around std::vector
To post a comment you must log in.
1. Don't #include <iostream> where it isn't needed. (I don't think you even need #include <iosfwd>.)
2. As you're specifying the length of the array as 4 here:
Value( unsigned short c[4] ) : mListType( TypeUnset) ,
mValue (ColorVector (c, c + sizeof (c) / sizeof (unsigned short)))
it seems overly complex to compute it by "sizeof (c) / sizeof (unsigned short))" - (even a "length_of" template would make the intention clearer).