Merge lp:~charlesk/indicator-power/lp-1079795 into lp:indicator-power/13.04

Proposed by Charles Kerr
Status: Merged
Approved by: Charles Kerr
Approved revision: 158
Merged at revision: 158
Proposed branch: lp:~charlesk/indicator-power/lp-1079795
Merge into: lp:indicator-power/13.04
Diff against target: 19 lines (+4/-4)
1 file modified
tests/test-device.cc (+4/-4)
To merge this branch: bzr merge lp:~charlesk/indicator-power/lp-1079795
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Mathieu Trudel-Lapierre Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+134718@code.launchpad.net

Commit message

explicitly cast integral values to the correct type when passing them to a varargs function.

Description of the change

Explicitly cast integral values to the correct type when passing them to a varargs function.

To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

Changing to "Work in Progress" to tell Jenkins to wait a bit, because alesage is right now adding armhf to indicator-power's CI

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Allan LeSage (allanlesage) wrote :

Too late! I'll kick off again in a bit.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks good to me.

review: Approve
Revision history for this message
Ted Gould (ted) wrote :

Really, this is a case for not using the varargs function. But, since this is a test I don't think it's a big deal, approving.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test-device.cc'
2--- tests/test-device.cc 2012-11-07 17:25:41 +0000
3+++ tests/test-device.cc 2012-11-16 18:00:36 +0000
4@@ -199,11 +199,11 @@
5
6 GVariant * variant = g_variant_new ("(susdut)",
7 "/object/path",
8- UP_DEVICE_KIND_BATTERY,
9+ (guint32) UP_DEVICE_KIND_BATTERY,
10 "icon",
11- 50.0,
12- UP_DEVICE_STATE_CHARGING,
13- 30);
14+ (gdouble) 50.0,
15+ (guint32) UP_DEVICE_STATE_CHARGING,
16+ (guint64) 30);
17 IndicatorPowerDevice * device = indicator_power_device_new_from_variant (variant);
18 ASSERT_TRUE (variant != NULL);
19 ASSERT_TRUE (device != NULL);

Subscribers

People subscribed via source and target branches