summaryrefslogtreecommitdiff
path: root/plugins/unity-mt-grab-handles
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2012-06-12 18:13:16 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2012-06-12 18:13:16 +0200
commit4649e2ffcb501af3adb492e832d952182a685826 (patch)
tree70c0f49398883e36e20e32f4e4531a857d4f1ac9 /plugins/unity-mt-grab-handles
parent62591f2cfebe9fc792239740342e577b79e2631e (diff)
Fix compilation errors.
(bzr r2401.1.1)
Diffstat (limited to 'plugins/unity-mt-grab-handles')
-rw-r--r--plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp b/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp
index cac9210e0..77bd22cfd 100644
--- a/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp
+++ b/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle-layout.cpp
@@ -48,7 +48,7 @@ unity::MT::getLayoutForMask (unsigned int state,
{
MaximizedVertMask,
MaximizedHorzMask,
- 0, ~0,
+ 0, static_cast<unsigned int>(~0),
LeftHandle | RightHandle | MiddleHandle
},
/* Horizontally maximized, don't care
@@ -57,21 +57,21 @@ unity::MT::getLayoutForMask (unsigned int state,
{
MaximizedHorzMask,
MaximizedVertMask,
- 0, ~0,
+ 0, static_cast<unsigned int>(~0),
TopHandle | BottomHandle | MiddleHandle
},
/* Maximized, don't care about the movement
* handle */
{
MaximizedVertMask | MaximizedHorzMask,
- 0, 0, ~0,
+ 0, 0, static_cast<unsigned int>(~0),
MiddleHandle
},
/* Immovable, don't show move handle */
{
0,
- ~0,
- ~0, MoveMask,
+ static_cast<unsigned int>(~0),
+ static_cast<unsigned int>(~0), MoveMask,
TopLeftHandle | TopHandle | TopRightHandle |
LeftHandle | RightHandle |
BottomLeftHandle | BottomHandle | BottomRightHandle
@@ -79,8 +79,8 @@ unity::MT::getLayoutForMask (unsigned int state,
/* Not resizable, don't show resize handle */
{
0,
- ~0,
- ~0, ResizeMask,
+ static_cast<unsigned int>(~0),
+ static_cast<unsigned int>(~0), ResizeMask,
MiddleHandle
},
};