Conversation
|
Argh, looks like I based this work off the wrong fork, hence the mountain of conflicts. They're resolvable, but I'll need to look into it in the morning, I suspect. |
| @@ -1,3 +0,0 @@ | |||
| [submodule "wobbly/third_party/allow_move_optional"] | |||
| path = wobbly/third_party/allow_move_optional | |||
| url = git://github.com/smspillaz/CopyMoveConstrainedOptional | |||
There was a problem hiding this comment.
I should probably split out this change into a separate commit
edafedb to
293ea2f
Compare
This isn't being used anywhere
"libwobbly" is now a subset of this library, we're going to be adding more stuff here. Due to the name change the version is also reset to 0.
We'll be using this in other subdirectories
We'll be using them elsewhere.
|
Jenkins is failing because it still expects the package name to be |
joaquimrocha
left a comment
There was a problem hiding this comment.
Just a couple of comments. Note that I reviewed this quicker than usual because it was mostly the name replacement, which should be fine.
| # Build the libwobbly library. | ||
|
|
||
| api_version = '0.3' | ||
| api_version = '0' |
There was a problem hiding this comment.
It'd be fine if you kept it. I assume nothing will depend on the 0.3 version of it then.
There was a problem hiding this comment.
Yeah the API version got reset to 0 since we changed the name. Or at least I assume that's how things are meant to work.
| } | ||
|
|
||
| AnimationWobblyAnchor * | ||
| animation_wobbly_anchor_new_for_native_anchor_rvalue (wobbly::Anchor &&anchor) |
There was a problem hiding this comment.
Do you really need to specify the rvalue in the function name?
There was a problem hiding this comment.
Probably not, though I guess I just wanted to make it clear that it wants an rvalue reference in case anyone was wondering why things might not compile when they pass it an lvalue :)
There was a problem hiding this comment.
I left this as is for now
| wgd::get <1> (tileSize) * column); | ||
| wgd::pointwise_subtract (start, deltaToTopLeft); | ||
| animation::Point deltaToTopLeft (agd::get <0> (tileSize) * row, | ||
| agd::get <1> (tileSize) * column); |
There was a problem hiding this comment.
Nitpick: Misaligned line.
| config::Width)); | ||
| return animation::PointView <double> (mPoints, | ||
| CoordIndex (x, y, | ||
| config::Width)); |
There was a problem hiding this comment.
Nitpick: This could go in the line above as well. I don't think the whole code is strictly aligned to 80 chars (I may be wrong though).
There was a problem hiding this comment.
It isn't. Well, it used to be but I ditched that rule since it was getting too unwieldy to comply with :)
| #include <animation/wobbly/wobbly.h> // for PointView, Vector, Point, etc/wobbly_internal.h | ||
| #include <animation/geometry.h> // for PointView, PointModel, etc | ||
| #include <animation/geometry_traits.h> // for assign, scale, etc | ||
| #include <animation/wobbly/wobbly.h> // for PointView, Vector, Point, etc |
There was a problem hiding this comment.
Nitpick: You could aligned all the comments too.
There was a problem hiding this comment.
Interesting note: Those comments are actually generated by include-what-you-use, which I did have enabled on this project earlier, but turned off since its a pain to manage.
| auto const x1 = dimension::get <0> (tl); | ||
| auto const x2 = dimension::get <0> (br); | ||
| auto const y1 = dimension::get <1> (tl); | ||
| auto const y2 = dimension::get <1> (br); |
There was a problem hiding this comment.
If you're changing the corners used for extracting the limits, and you're not changing the comparison, then it means the comparison is wrong now or before. Seems like it was wrong before. Or was it just the name of the vars that was incorrect? If so, then maybe making more emphasis on that fact in the commit message would be good?
There was a problem hiding this comment.
In this case, the values themselves didn't actually change, only the names, which were wrong. I'll re-emphasize that in the commit message.
There was a problem hiding this comment.
Commit message fixed.
It is 2018, manual headerguards are out of fashion.
Previous, this was "tr" and "bl" for "topRight" and "bottomLeft", but that makes no sense because they actually represented the top left and bottom right values. It should be tl and br.
https://phabricator.endlessm.com/T23534