From e0e7b5b8dbdfa6c80c3d72eb960bfb23ed071b13 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 25 Jan 2008 12:54:09 +0000 Subject: [PATCH] Fix a bug found by g++ 4.3, and then commented out the fixed method because it's never used anywhere anyway. git-svn-id: http://svn.voria.com/code@1467 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/renddesc.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/synfig-core/trunk/src/synfig/renddesc.h b/synfig-core/trunk/src/synfig/renddesc.h index 199cc3c..b763e88 100644 --- a/synfig-core/trunk/src/synfig/renddesc.h +++ b/synfig-core/trunk/src/synfig/renddesc.h @@ -303,14 +303,15 @@ inline RendDesc::Lock operator~(RendDesc::Lock rhs) return static_cast(~(int)rhs); } +//! \todo This code isn't used - so how are flags checked? Using the FLAGS macro from color.h? //! This operator is for checking RendDesc::Lock flags. /*! Don't think of it as "less then or equal to", but think of it ** like an arrow. Is \a rhs inside of \a lhs ? ** \see RendDesc::Lock, RendDesc */ -inline bool operator<=(RendDesc::Lock lhs, RendDesc::Lock rhs) -{ - return static_cast(lhs) & static_cast(rhs)==static_cast(rhs); -} +// inline bool operator<=(RendDesc::Lock lhs, RendDesc::Lock rhs) +// { +// return (static_cast(lhs) & static_cast(rhs)) == static_cast(rhs); +// } }; /* end namespace synfig */ -- 2.7.4