projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
343f5a4
)
[algs] Fix hb_first() / hb_second()
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 9 Jan 2019 20:36:17 +0000
(12:36 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 21 Jan 2019 01:12:12 +0000
(20:12 -0500)
src/hb-algs.hh
patch
|
blob
|
history
diff --git
a/src/hb-algs.hh
b/src/hb-algs.hh
index
7b911fa
..
cc99749
100644
(file)
--- a/
src/hb-algs.hh
+++ b/
src/hb-algs.hh
@@
-56,13
+56,13
@@
hb_pair (T1 a, T2 b) { return hb_pair_t<T1, T2> (a, b); }
static struct
{
template <typename Pair> typename Pair::first_t
- operator () (const Pair& pair) { return pair.first; }
+ operator () (const Pair& pair)
const
{ return pair.first; }
} hb_first;
static struct
{
template <typename Pair> typename Pair::second_t
- operator () (const Pair& pair) { return pair.second; }
+ operator () (const Pair& pair)
const
{ return pair.second; }
} hb_second;