Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 429ba89c authored by Dan Stoza's avatar Dan Stoza
Browse files

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
parent 00d504c0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;