From: dooglus Date: Fri, 25 Jan 2008 12:54:09 +0000 (+0000) Subject: Fix a bug found by g++ 4.3, and then commented out the fixed method because it's... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e0e7b5b8dbdfa6c80c3d72eb960bfb23ed071b13;p=synfig.git 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 --- 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 */