summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-10-28 16:41:10 -0700
committerDan Stoza <stoza@google.com>2014-10-29 15:48:28 -0700
commitbccab86174f2cce787333aebb13ac5ef9a9247cc (patch)
treea4c4e780f80ae1b01f8c63ef663078a53751e25b /include/ui
parentcb8a9fcc56288378d05d80c55396db7981e3828d (diff)
downloadframeworks_native-bccab86174f2cce787333aebb13ac5ef9a9247cc.zip
frameworks_native-bccab86174f2cce787333aebb13ac5ef9a9247cc.tar.gz
frameworks_native-bccab86174f2cce787333aebb13ac5ef9a9247cc.tar.bz2
Initialize ARect fields in default ctor
So that we can use Rect() for update and such. Bug: 18095940 Change-Id: I03ed87121d2d279f22013b75e95dd7254551ca1f
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/Rect.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/Rect.h b/include/ui/Rect.h
index 6cf64eb..31e28d2 100644
--- a/include/ui/Rect.h
+++ b/include/ui/Rect.h
@@ -34,6 +34,7 @@ public:
// because we want the compiler generated versions
inline Rect() {
+ left = right = top = bottom = 0;
}
inline Rect(int32_t w, int32_t h) {