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
This commit is contained in:
Dan Stoza 2014-12-05 14:17:45 -08:00
parent 00d504c06e
commit 429ba89cd2

View File

@ -17,8 +17,6 @@
#ifndef ANDROID_UI_RECT
#define ANDROID_UI_RECT
#define LOG_TAG "Rect"
#include <utils/Flattenable.h>
#include <utils/Log.h>
#include <utils/TypeHelpers.h>
@ -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;