diff -r 7c27cda03747 -r 97df974b5ed5 src/colors.h --- a/src/colors.h Fri Mar 06 23:45:44 2020 +0200 +++ b/src/colors.h Mon Mar 09 14:21:54 2020 +0200 @@ -49,34 +49,37 @@ QMap definitions; }; -inline bool operator==(const ldraw::Color& one, const ldraw::Color& other) -{ - return one.index == other.index; -} - -inline bool operator!=(const ldraw::Color& one, const ldraw::Color& other) -{ - return one.index != other.index; -} - -inline bool operator<(const ldraw::Color& one, const ldraw::Color& other) +namespace ldraw { - return one.index < other.index; -} + inline bool operator==(const ldraw::Color& one, const ldraw::Color& other) + { + return one.index == other.index; + } -inline bool operator<=(const ldraw::Color& one, const ldraw::Color& other) -{ - return one.index <= other.index; -} + inline bool operator!=(const ldraw::Color& one, const ldraw::Color& other) + { + return one.index != other.index; + } + + inline bool operator<(const ldraw::Color& one, const ldraw::Color& other) + { + return one.index < other.index; + } -inline bool operator>(const ldraw::Color& one, const ldraw::Color& other) -{ - return one.index > other.index; -} + inline bool operator<=(const ldraw::Color& one, const ldraw::Color& other) + { + return one.index <= other.index; + } -inline bool operator>=(const ldraw::Color& one, const ldraw::Color& other) -{ - return one.index >= other.index; + inline bool operator>(const ldraw::Color& one, const ldraw::Color& other) + { + return one.index > other.index; + } + + inline bool operator>=(const ldraw::Color& one, const ldraw::Color& other) + { + return one.index >= other.index; + } } namespace ldraw