diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-04-20 15:51:53 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-04-20 15:51:53 -0400 |
commit | 851f873072b26b32c514c459ba2ca141dd1b79e0 (patch) | |
tree | d4908c8c8cc58f09f163409bf663053f277c238e /pango | |
parent | fc23518fc6fb391a0e7dc872c6a2e89a09cad018 (diff) | |
download | pango-851f873072b26b32c514c459ba2ca141dd1b79e0.tar.gz |
[HB] Add couple consts to operators
Diffstat (limited to 'pango')
-rw-r--r-- | pango/opentype/hb-open-type-private.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh index e146a2d3..ea6ba5b4 100644 --- a/pango/opentype/hb-open-type-private.hh +++ b/pango/opentype/hb-open-type-private.hh @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007,2008,2009 Red Hat, Inc. + * Copyright (C) 2007,2008,2009,2010 Red Hat, Inc. * * This is part of HarfBuzz, an OpenType Layout engine library. * @@ -346,7 +346,7 @@ struct Sanitizer { \ inline NAME& set (TYPE i) { (TYPE&) v = BIG_ENDIAN (i); return *this; } \ inline operator TYPE(void) const { return BIG_ENDIAN ((TYPE&) v); } \ - inline bool operator== (NAME o) const { return (TYPE&) v == (TYPE&) o.v; } \ + inline bool operator== (const NAME &o) const { return (TYPE&) v == (TYPE&) o.v; } \ inline bool sanitize (SANITIZE_ARG_DEF) { \ TRACE_SANITIZE (); \ return SANITIZE_SELF (); \ @@ -361,7 +361,7 @@ struct Sanitizer static inline unsigned int get_size () { return BYTES; } \ inline NAME& set (TYPE i) { BIG_ENDIAN##_put_unaligned(v, i); return *this; } \ inline operator TYPE(void) const { return BIG_ENDIAN##_get_unaligned (v); } \ - inline bool operator== (NAME o) const { return BIG_ENDIAN##_cmp_unaligned (v, o.v); } \ + inline bool operator== (const NAME &o) const { return BIG_ENDIAN##_cmp_unaligned (v, o.v); } \ inline bool sanitize (SANITIZE_ARG_DEF) { \ TRACE_SANITIZE (); \ return SANITIZE_SELF (); \ |