From 276826bae2eb6d25c4abb1c5f665d2876c65e50c Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 29 Jun 2009 18:46:37 -0700 Subject: Region::makeBoundsSelf() efficiently turns a region to its bounds --- libs/ui/Region.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/ui/Region.cpp') diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 2e6b241a310d..b400a92d0632 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -87,6 +87,12 @@ Region& Region::operator = (const Region& rhs) return *this; } +Region& Region::makeBoundsSelf() +{ + mStorage.clear(); + return *this; +} + void Region::clear() { mBounds.clear(); -- cgit v1.2.3-59-g8ed1b