From fc5499f22bd9b30affca08e584411012f71b6e9c Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 23 Feb 2017 19:06:53 -0800 Subject: recovery: Move a few int to bool. Most of the changes are trivial. Also update a dead reference to device_handle_key() in device.h comment, and add some comments to get_menu_selection() function. Test: `mmma bootable/recovery` Change-Id: I59ef9213ec88ab35c0e7b8a7813ccf9c56dbd5c5 --- device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device.cpp') diff --git a/device.cpp b/device.cpp index e717dddf7..61501869e 100644 --- a/device.cpp +++ b/device.cpp @@ -60,7 +60,7 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) { return menu_position < 0 ? NO_ACTION : MENU_ACTIONS[menu_position]; } -int Device::HandleMenuKey(int key, int visible) { +int Device::HandleMenuKey(int key, bool visible) { if (!visible) { return kNoAction; } -- cgit v1.2.3