From c16fd8a9316f2c8549b34a61cf6091072de54319 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 30 Apr 2018 17:12:03 -0700 Subject: Drop '#include "ui.h"' from device.h. We don't need the dependency in the header. Test: mmma -j bootable/recovery Change-Id: I03741ae7911a7e8bf1284b2821cf986ca0ab434e --- device.cpp | 2 ++ device.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/device.cpp b/device.cpp index f881daff6..3b0942c49 100644 --- a/device.cpp +++ b/device.cpp @@ -16,6 +16,8 @@ #include "device.h" +#include "ui.h" + static const char* MENU_ITEMS[] = { "Reboot system now", "Reboot to bootloader", diff --git a/device.h b/device.h index 74745b36c..4ea3159bd 100644 --- a/device.h +++ b/device.h @@ -17,7 +17,8 @@ #ifndef _RECOVERY_DEVICE_H #define _RECOVERY_DEVICE_H -#include "ui.h" +// Forward declaration to avoid including "ui.h". +class RecoveryUI; class Device { public: -- cgit v1.2.3