summaryrefslogtreecommitdiff
path: root/src/rect.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-25 04:13:12 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-09-25 04:13:12 +0200
commite86fac1b049392a9bff8dac615b9ff34ec8092fd (patch)
tree08a25bf26812ee06496d1094a5fb0c0587047d7a /src/rect.cpp
parentee3270073cbcc771581bb802c0331e2c5cd52878 (diff)
downloadunity-window-decorator-e86fac1b049392a9bff8dac615b9ff34ec8092fd.tar.gz
unity-window-decorator-e86fac1b049392a9bff8dac615b9ff34ec8092fd.tar.bz2
Adden CompRegion class.
Diffstat (limited to 'src/rect.cpp')
-rw-r--r--src/rect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rect.cpp b/src/rect.cpp
index 1b391ce..209e14f 100644
--- a/src/rect.cpp
+++ b/src/rect.cpp
@@ -27,10 +27,10 @@ CompRect::CompRect (const CompRect& r)
mRegion.rects = &mRegion.extents;
}
-Region
-CompRect::region ()
+const Region
+CompRect::region () const
{
- return &mRegion;
+ return const_cast<const Region> (&mRegion);
}
void