From 429ba89cd293633d2f882165066b422c96597df2 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 5 Dec 2014 14:17:45 -0800 Subject: [PATCH] libui: Remove LOG_TAG #define in Rect.h The redefinition of LOG_TAG in a header file was causing some issues for code that had strict warnings and -Werror enabled, so remove the (possible re-)definition Change-Id: I7ecb907463ba98fbdbd8b9734a000b2f27f43a65 --- include/ui/Rect.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ui/Rect.h b/include/ui/Rect.h index 895f3a32e..40d11665d 100644 --- a/include/ui/Rect.h +++ b/include/ui/Rect.h @@ -17,8 +17,6 @@ #ifndef ANDROID_UI_RECT #define ANDROID_UI_RECT -#define LOG_TAG "Rect" - #include #include #include @@ -48,11 +46,13 @@ public: inline Rect(uint32_t w, uint32_t h) { if (w > INT32_MAX) { - ALOGW("Width %u too large for Rect class, clamping", w); + ALOG(LOG_WARN, "Rect", + "Width %u too large for Rect class, clamping", w); w = INT32_MAX; } if (h > INT32_MAX) { - ALOGW("Height %u too large for Rect class, clamping", h); + ALOG(LOG_WARN, "Rect", + "Height %u too large for Rect class, clamping", h); h = INT32_MAX; } left = top = 0;