X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Frenddesc.h;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Frenddesc.h;h=b763e88172ed046763d7163f7180ad643137aa78;hb=e0e7b5b8dbdfa6c80c3d72eb960bfb23ed071b13;hp=199cc3c9bdd97d13471348de507a3ac1f52ddee5;hpb=22722d337bb6d0fb90a27c86d9981823afdcf8d2;p=synfig.git 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 */