From f98d003e354a1792117b7cbc771d1dd91475a156 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 17:48:29 +0200 Subject: Fix most old style cast except manaserv and libxml2 defines. --- src/gui/widgets/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 9b05a1389..1037296b6 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -748,7 +748,8 @@ int Window::getResizeHandles(gcn::MouseEvent &event) const int y = event.getY(); if (mGrip && (y > static_cast(mTitleBarHeight) - || (y < (int)getPadding() && mTitleBarHeight > getPadding()))) + || (y < static_cast(getPadding()) && mTitleBarHeight + > getPadding()))) { const int x = event.getX(); @@ -776,7 +777,7 @@ bool Window::isResizeAllowed(gcn::MouseEvent &event) const int y = event.getY(); if (mGrip && (y > static_cast(mTitleBarHeight) - || y < (int)getPadding())) + || y < static_cast(getPadding()))) { const int x = event.getX(); -- cgit v1.2.3-70-g09d2