tools/source/generic/gen.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
New commits: commit d1c91627d9c7d117ee2e680f5c24844f7c4d8515 Author: Julien Nabet <[email protected]> Date: Fri Nov 6 23:47:42 2015 +0100 Return early Change-Id: Ifef410c1495d1a2b99693f4669d81d6293f74f6a Reviewed-on: https://gerrit.libreoffice.org/19834 Tested-by: Jenkins <[email protected]> Reviewed-by: Julien Nabet <[email protected]> diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 33a4ae4..8306ef8 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -133,28 +133,27 @@ bool Rectangle::IsInside( const Point& rPoint ) const if ( IsEmpty() ) return false; - bool bRet = true; if ( nLeft <= nRight ) { if ( (rPoint.X() < nLeft) || (rPoint.X() > nRight) ) - bRet = false; + return false; } else { if ( (rPoint.X() > nLeft) || (rPoint.X() < nRight) ) - bRet = false; + return false; } if ( nTop <= nBottom ) { if ( (rPoint.Y() < nTop) || (rPoint.Y() > nBottom) ) - bRet = false; + return false; } else { if ( (rPoint.Y() > nTop) || (rPoint.Y() < nBottom) ) - bRet = false; + return false; } - return bRet; + return true; } bool Rectangle::IsInside( const Rectangle& rRect ) const _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
