[poppler] Branch 'xpdf304merge' - goo/FixedPoint.h

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Fri Jun 6 10:21:56 PDT 2014


 goo/FixedPoint.h |   58 +++++++++++++++++++++++++++----------------------------
 1 file changed, 29 insertions(+), 29 deletions(-)

New commits:
commit 2bed20d160771686d4c3eac2bb6a0650595c4dba
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Fri Jun 6 19:20:50 2014 +0200

    xpdf304: Make all comparison operators const in FixedPoint

diff --git a/goo/FixedPoint.h b/goo/FixedPoint.h
index 9974980..c11933c 100644
--- a/goo/FixedPoint.h
+++ b/goo/FixedPoint.h
@@ -49,35 +49,35 @@ public:
 
   FixedPoint operator =(FixedPoint x) { val = x.val; return *this; }
 
-  int operator ==(FixedPoint x) { return val == x.val; }
-  int operator ==(double x) { return *this == (FixedPoint)x; }
-  int operator ==(int x) { return *this == (FixedPoint)x; }
-  int operator ==(long x) { return *this == (FixedPoint)x; }
-
-  int operator !=(FixedPoint x) { return val != x.val; }
-  int operator !=(double x) { return *this != (FixedPoint)x; }
-  int operator !=(int x) { return *this != (FixedPoint)x; }
-  int operator !=(long x) { return *this != (FixedPoint)x; }
-
-  int operator <(FixedPoint x) { return val < x.val; }
-  int operator <(double x) { return *this < (FixedPoint)x; }
-  int operator <(int x) { return *this < (FixedPoint)x; }
-  int operator <(long x) { return *this < (FixedPoint)x; }
-
-  int operator <=(FixedPoint x) { return val <= x.val; }
-  int operator <=(double x) { return *this <= (FixedPoint)x; }
-  int operator <=(int x) { return *this <= (FixedPoint)x; }
-  int operator <=(long x) { return *this <= (FixedPoint)x; }
-
-  int operator >(FixedPoint x) { return val > x.val; }
-  int operator >(double x) { return *this > (FixedPoint)x; }
-  int operator >(int x) { return *this > (FixedPoint)x; }
-  int operator >(long x) { return *this > (FixedPoint)x; }
-
-  int operator >=(FixedPoint x) { return val >= x.val; }
-  int operator >=(double x) { return *this >= (FixedPoint)x; }
-  int operator >=(int x) { return *this >= (FixedPoint)x; }
-  int operator >=(long x) { return *this >= (FixedPoint)x; }
+  int operator ==(FixedPoint x) const { return val == x.val; }
+  int operator ==(double x) const { return *this == (FixedPoint)x; }
+  int operator ==(int x) const { return *this == (FixedPoint)x; }
+  int operator ==(long x) const { return *this == (FixedPoint)x; }
+
+  int operator !=(FixedPoint x) const { return val != x.val; }
+  int operator !=(double x) const { return *this != (FixedPoint)x; }
+  int operator !=(int x) const { return *this != (FixedPoint)x; }
+  int operator !=(long x) const { return *this != (FixedPoint)x; }
+
+  int operator <(FixedPoint x) const { return val < x.val; }
+  int operator <(double x) const { return *this < (FixedPoint)x; }
+  int operator <(int x) const { return *this < (FixedPoint)x; }
+  int operator <(long x) const { return *this < (FixedPoint)x; }
+
+  int operator <=(FixedPoint x) const { return val <= x.val; }
+  int operator <=(double x) const { return *this <= (FixedPoint)x; }
+  int operator <=(int x) const { return *this <= (FixedPoint)x; }
+  int operator <=(long x) const { return *this <= (FixedPoint)x; }
+
+  int operator >(FixedPoint x) const { return val > x.val; }
+  int operator >(double x) const { return *this > (FixedPoint)x; }
+  int operator >(int x) const { return *this > (FixedPoint)x; }
+  int operator >(long x) const { return *this > (FixedPoint)x; }
+
+  int operator >=(FixedPoint x) const { return val >= x.val; }
+  int operator >=(double x) const { return *this >= (FixedPoint)x; }
+  int operator >=(int x) const { return *this >= (FixedPoint)x; }
+  int operator >=(long x) const { return *this >= (FixedPoint)x; }
 
   FixedPoint operator -() { return make(-val); }
 


More information about the poppler mailing list