summaryrefslogtreecommitdiff
path: root/poppler-glib/src/color.hg
diff options
context:
space:
mode:
Diffstat (limited to 'poppler-glib/src/color.hg')
-rw-r--r--poppler-glib/src/color.hg21
1 files changed, 21 insertions, 0 deletions
diff --git a/poppler-glib/src/color.hg b/poppler-glib/src/color.hg
index e27de17..0aba995 100644
--- a/poppler-glib/src/color.hg
+++ b/poppler-glib/src/color.hg
@@ -52,6 +52,27 @@ class Color
* @endcode
*/
inline operator BoolExpr() const { return gobj() ? GINT_TO_POINTER(1) : 0; }
+
+ private:
+ /** Relational operators are deleted to prevent invalid conversion
+ * to const void*.
+ */
+ bool operator<(const Color& src) const;
+
+ /// See operator<().
+ bool operator<=(const Color& src) const;
+
+ /// See operator<().
+ bool operator>(const Color& src) const;
+
+ /// See operator<().
+ bool operator>=(const Color& src) const;
+
+ /// See operator<().
+ bool operator==(const Color& src) const;
+
+ /// See operator<().
+ bool operator!=(const Color& src) const;
};
} // namespace Poppler