Merge lp:~laney/platform-api/1350874 into lp:platform-api
Proposed by
Iain Lane
Status: | Merged |
---|---|
Approved by: | Thomas Voß |
Approved revision: | 258 |
Merged at revision: | 258 |
Proposed branch: | lp:~laney/platform-api/1350874 |
Merge into: | lp:platform-api |
Diff against target: |
64 lines (+14/-22) 2 files modified
include/ubuntu/application/ui/input/event.h (+13/-11) include/ubuntu/application/ui/input/event_deprecated.h (+1/-11) |
To merge this branch: | bzr merge lp:~laney/platform-api/1350874 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Voß (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Ubuntu Phablet Team | Pending | ||
Review via email: mp+231171@code.launchpad.net |
Commit message
Fix error by pulling out and sharing a struct instead of defining it twice.
Description of the change
Pull out PointerCoordinate struct shared between two files
structs have file scope. This means that a struct declared within a struct is
still visible outside it. In this case event_deprecated.h is included into
event.h and they both define an identical struct called PointerCoordinate.
Pull the definition out and share it. This does not add new API due to the
scoping rule mentioned previously.
To post a comment you must log in.
FAILED: Continuous integration, rev:258 jenkins. qa.ubuntu. com/job/ platform- api-ci/ 353/ jenkins. qa.ubuntu. com/job/ platform- api-utopic- amd64-ci/ 86 jenkins. qa.ubuntu. com/job/ platform- api-utopic- armhf-ci/ 86/console jenkins. qa.ubuntu. com/job/ platform- api-utopic- i386-ci/ 86
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/platform- api-ci/ 353/rebuild
http://