[Webkit-unassigned] [Bug 92964] [EFL] Change return value of battey level

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 04:09:19 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92964





--- Comment #5 from Ryuan Choi <ryuan.choi at samsung.com>  2012-08-02 04:09:19 PST ---
(From update of attachment 156032)
View in context: https://bugs.webkit.org/attachment.cgi?id=156032&action=review

> Source/WebCore/platform/efl/BatteryProviderEfl.cpp:163
> -    if (!clientBatteryStatus || clientBatteryStatus->level() != property->val.d)
> +    if (!clientBatteryStatus || clientBatteryStatus->level() != property->val.d / 100)
>          levelChanged = true;
> -    level = property->val.d;
> +    level = property->val.d / 100;

I am not sure why you use level, local variable.

IMO, you can remove level variable or assign it before 161 line with declaration.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list