X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Frenddesc.h;h=9b714d1b29938bfc04b3a9ee76b1a4ea5e36f874;hb=756c0d29ac1742f231e6615f9a577e574e35a4af;hp=199cc3c9bdd97d13471348de507a3ac1f52ddee5;hpb=11a1c763f7eb6a1d1aaed03adeae287fca2a6bdc;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/renddesc.h b/synfig-core/trunk/src/synfig/renddesc.h index 199cc3c..9b714d1 100644 --- a/synfig-core/trunk/src/synfig/renddesc.h +++ b/synfig-core/trunk/src/synfig/renddesc.h @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -303,14 +304,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 */