From 60d6922a011fe18c111b8d30fb6ef1f655b6b15e Mon Sep 17 00:00:00 2001 From: Pablo Ceballos Date: Fri, 7 Aug 2015 14:47:20 -0700 Subject: libsgui: Change Rect default constructor The current Rect default constructor initializes to all zeroes. Change it to initialize to an invalid Rect. Modify all of the existing invocations of the default constructor to maintain the existing behavior. Bug 18173359 Change-Id: Ibbad076f1550a94f56d7b1cf5350071f2022e09a --- libs/ui/Region.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ui/Region.cpp') diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 3810da4049..7792975993 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -798,7 +798,7 @@ status_t Region::unflatten(void const* buffer, size_t size) { Region result; result.mStorage.clear(); for (size_t r = 0; r < numRects; ++r) { - Rect rect; + Rect rect(Rect::EMPTY_RECT); status_t status = rect.unflatten(buffer, size); if (status != NO_ERROR) { return status; -- cgit v1.2.3-59-g8ed1b