Whitespace
diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh
index ea24c9f..a8c4b76 100644
--- a/src/hb-aat-layout-common.hh
+++ b/src/hb-aat-layout-common.hh
@@ -154,7 +154,7 @@
valuesZ.sanitize (c, base, last - first + 1));
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, const void *base, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, const void *base, Ts&&... ds) const
{
TRACE_SANITIZE (this);
return_trace (c->check_struct (this) &&
diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh
index 1b3f1f9..cec63ac 100644
--- a/src/hb-aat-layout-kerx-table.hh
+++ b/src/hb-aat-layout-kerx-table.hh
@@ -772,7 +772,7 @@
unsigned int get_type () const { return u.header.coverage & u.header.SubtableType; }
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
unsigned int subtable_type = get_type ();
TRACE_DISPATCH (this, subtable_type);
diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh
index 7aa830d..81d7897 100644
--- a/src/hb-aat-layout-morx-table.hh
+++ b/src/hb-aat-layout-morx-table.hh
@@ -884,7 +884,7 @@
};
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
unsigned int subtable_type = get_type ();
TRACE_DISPATCH (this, subtable_type);
diff --git a/src/hb-algs.hh b/src/hb-algs.hh
index fe41702..23cb9b0 100644
--- a/src/hb-algs.hh
+++ b/src/hb-algs.hh
@@ -75,7 +75,7 @@
/* Pointer-to-member-function. */
template <typename Appl, typename Val1, typename ...Vals> auto
- impl (Appl&& a, hb_priority<2>, Val1 &&v1, Vals &&...vs) const HB_AUTO_RETURN
+ impl (Appl&& a, hb_priority<2>, Val1 &&v1, Vals&&... vs) const HB_AUTO_RETURN
((hb_deref (hb_forward<Val1> (v1)).*hb_forward<Appl> (a)) (hb_forward<Vals> (vs)...))
/* Pointer-to-member. */
@@ -85,13 +85,13 @@
/* Operator(). */
template <typename Appl, typename ...Vals> auto
- impl (Appl&& a, hb_priority<0>, Vals &&...vs) const HB_AUTO_RETURN
+ impl (Appl&& a, hb_priority<0>, Vals&&... vs) const HB_AUTO_RETURN
(hb_deref (hb_forward<Appl> (a)) (hb_forward<Vals> (vs)...))
public:
template <typename Appl, typename ...Vals> auto
- operator () (Appl&& a, Vals &&...vs) const HB_AUTO_RETURN
+ operator () (Appl&& a, Vals&&... vs) const HB_AUTO_RETURN
(
impl (hb_forward<Appl> (a),
hb_prioritize,
diff --git a/src/hb-dispatch.hh b/src/hb-dispatch.hh
index 6b49782..be4a90f 100644
--- a/src/hb-dispatch.hh
+++ b/src/hb-dispatch.hh
@@ -48,7 +48,7 @@
template <typename T, typename F>
bool may_dispatch (const T *obj HB_UNUSED, const F *format HB_UNUSED) { return true; }
template <typename T, typename ...Ts>
- return_t dispatch (const T &obj, Ts &&...ds)
+ return_t dispatch (const T &obj, Ts&&... ds)
{ return obj.dispatch (thiz (), hb_forward<Ts> (ds)...); }
static return_t no_dispatch_return_value () { return Context::default_return_value (); }
static bool stop_sublookup_iteration (const return_t r HB_UNUSED) { return false; }
diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh
index 9458cee..e2e5623 100644
--- a/src/hb-open-type.hh
+++ b/src/hb-open-type.hh
@@ -285,7 +285,7 @@
}
template <typename ...Ts>
- bool serialize_subset (hb_subset_context_t *c, const Type &src, const void *base, Ts &&...ds)
+ bool serialize_subset (hb_subset_context_t *c, const Type &src, const void *base, Ts&&... ds)
{
*this = 0;
if (has_null && &src == _hb_has_null<Type, has_null>::get_null ())
@@ -307,7 +307,7 @@
/* TODO: Somehow merge this with previous function into a serialize_dispatch(). */
template <typename ...Ts>
- bool serialize_copy (hb_serialize_context_t *c, const Type &src, const void *base, Ts &&...ds)
+ bool serialize_copy (hb_serialize_context_t *c, const Type &src, const void *base, Ts&&... ds)
{
*this = 0;
if (has_null && &src == _hb_has_null<Type, has_null>::get_null ())
@@ -332,7 +332,7 @@
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, const void *base, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, const void *base, Ts&&... ds) const
{
TRACE_SANITIZE (this);
return_trace (sanitize_shallow (c, base) &&
@@ -465,7 +465,7 @@
return_trace (true);
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, unsigned int count, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, unsigned int count, Ts&&... ds) const
{
TRACE_SANITIZE (this);
if (unlikely (!sanitize_shallow (c, count))) return_trace (false);
@@ -511,7 +511,7 @@
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, unsigned int count, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, unsigned int count, Ts&&... ds) const
{
TRACE_SANITIZE (this);
return_trace ((UnsizedOffsetArrayOf<Type, OffsetType, has_null>
@@ -647,7 +647,7 @@
return_trace (true);
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, Ts&&... ds) const
{
TRACE_SANITIZE (this);
if (unlikely (!sanitize_shallow (c))) return_trace (false);
@@ -721,7 +721,7 @@
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, Ts&&... ds) const
{
TRACE_SANITIZE (this);
return_trace (OffsetArrayOf<Type>::sanitize (c, this, hb_forward<Ts> (ds)...));
@@ -823,7 +823,7 @@
{ return lenM1.static_size + (lenM1 + 1) * Type::static_size; }
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, Ts&&... ds) const
{
TRACE_SANITIZE (this);
if (unlikely (!sanitize_shallow (c))) return_trace (false);
@@ -1028,7 +1028,7 @@
return_trace (true);
}
template <typename ...Ts>
- bool sanitize (hb_sanitize_context_t *c, Ts &&...ds) const
+ bool sanitize (hb_sanitize_context_t *c, Ts&&... ds) const
{
TRACE_SANITIZE (this);
if (unlikely (!sanitize_shallow (c))) return_trace (false);
diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh
index 1310b84..436dad4 100644
--- a/src/hb-ot-kern-table.hh
+++ b/src/hb-ot-kern-table.hh
@@ -122,7 +122,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
unsigned int subtable_type = get_type ();
TRACE_DISPATCH (this, subtable_type);
@@ -305,7 +305,7 @@
{ return dispatch (c); }
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
unsigned int subtable_type = get_type ();
TRACE_DISPATCH (this, subtable_type);
diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh
index 153ee83..17a03c8 100644
--- a/src/hb-ot-layout-common.hh
+++ b/src/hb-ot-layout-common.hh
@@ -683,7 +683,7 @@
}
template <typename TSubTable, typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
unsigned int lookup_type = get_type ();
TRACE_DISPATCH (this, lookup_type);
diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh
index 4693f38..228820a 100644
--- a/src/hb-ot-layout-gpos-table.hh
+++ b/src/hb-ot-layout-gpos-table.hh
@@ -577,7 +577,7 @@
struct SinglePos
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -908,7 +908,7 @@
struct PairPos
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1093,7 +1093,7 @@
struct CursivePos
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1209,7 +1209,7 @@
struct MarkBasePos
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1334,7 +1334,7 @@
struct MarkLigPos
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1456,7 +1456,7 @@
struct MarkMarkPos
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1508,7 +1508,7 @@
};
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type, Ts&&... ds) const
{
TRACE_DISPATCH (this, lookup_type);
switch (lookup_type) {
@@ -1582,7 +1582,7 @@
static typename context_t::return_t dispatch_recurse_func (context_t *c, unsigned int lookup_index);
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{ return Lookup::dispatch<SubTable> (c, hb_forward<Ts> (ds)...); }
bool subset (hb_subset_context_t *c) const
diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh
index 5b25137..364ef18 100644
--- a/src/hb-ot-layout-gsub-table.hh
+++ b/src/hb-ot-layout-gsub-table.hh
@@ -252,7 +252,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -441,7 +441,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -615,7 +615,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -946,7 +946,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1114,7 +1114,7 @@
struct ReverseChainSingleSubst
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -1154,7 +1154,7 @@
};
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type, Ts&&... ds) const
{
TRACE_DISPATCH (this, lookup_type);
switch (lookup_type) {
@@ -1332,7 +1332,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{ return Lookup::dispatch<SubTable> (c, hb_forward<Ts> (ds)...); }
bool subset (hb_subset_context_t *c) const
diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh
index 3c4bfa2..3d4a1bc 100644
--- a/src/hb-ot-layout-gsubgpos.hh
+++ b/src/hb-ot-layout-gsubgpos.hh
@@ -1764,7 +1764,7 @@
struct Context
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -2475,7 +2475,7 @@
struct ChainContext
{
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
@@ -2511,7 +2511,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, format);
if (unlikely (!c->may_dispatch (this, this))) return_trace (c->no_dispatch_return_value ());
@@ -2558,7 +2558,7 @@
}
template <typename context_t, typename ...Ts>
- typename context_t::return_t dispatch (context_t *c, Ts &&...ds) const
+ typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
{
TRACE_DISPATCH (this, u.format);
if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
diff --git a/src/hb-sanitize.hh b/src/hb-sanitize.hh
index 9827233..ac424c1 100644
--- a/src/hb-sanitize.hh
+++ b/src/hb-sanitize.hh
@@ -136,14 +136,14 @@
private:
template <typename T, typename ...Ts> auto
- _dispatch (const T &obj, hb_priority<1>, Ts &&...ds) HB_AUTO_RETURN
+ _dispatch (const T &obj, hb_priority<1>, Ts&&... ds) HB_AUTO_RETURN
( obj.sanitize (this, hb_forward<Ts> (ds)...) )
template <typename T, typename ...Ts> auto
- _dispatch (const T &obj, hb_priority<0>, Ts &&...ds) HB_AUTO_RETURN
+ _dispatch (const T &obj, hb_priority<0>, Ts&&... ds) HB_AUTO_RETURN
( obj.dispatch (this, hb_forward<Ts> (ds)...) )
public:
template <typename T, typename ...Ts> auto
- dispatch (const T &obj, Ts &&...ds) HB_AUTO_RETURN
+ dispatch (const T &obj, Ts&&... ds) HB_AUTO_RETURN
( _dispatch (obj, hb_prioritize, hb_forward<Ts> (ds)...) )
diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh
index 21545a8..e0f7980 100644
--- a/src/hb-serialize.hh
+++ b/src/hb-serialize.hh
@@ -134,7 +134,7 @@
template <typename T> bool propagate_error (T &&obj)
{ return check_success (!hb_deref (obj).in_error ()); }
- template <typename T1, typename... Ts> bool propagate_error (T1 &&o1, Ts &&...os)
+ template <typename T1, typename... Ts> bool propagate_error (T1 &&o1, Ts&&... os)
{ return propagate_error (hb_forward<T1> (o1)) &&
propagate_error (hb_forward<Ts> (os)...); }
@@ -371,7 +371,7 @@
{ return embed (hb_addressof (obj)); }
template <typename Type, typename ...Ts> auto
- _copy (const Type &src, hb_priority<1>, Ts &&...ds) HB_RETURN
+ _copy (const Type &src, hb_priority<1>, Ts&&... ds) HB_RETURN
(Type *, src.copy (this, hb_forward<Ts> (ds)...))
template <typename Type> auto
@@ -386,10 +386,10 @@
/* Like embed, but active: calls obj.operator=() or obj.copy() to transfer data
* instead of memcpy(). */
template <typename Type, typename ...Ts>
- Type *copy (const Type &src, Ts &&...ds)
+ Type *copy (const Type &src, Ts&&... ds)
{ return _copy (src, hb_prioritize, hb_forward<Ts> (ds)...); }
template <typename Type, typename ...Ts>
- Type *copy (const Type *src, Ts &&...ds)
+ Type *copy (const Type *src, Ts&&... ds)
{ return copy (*src, hb_forward<Ts> (ds)...); }
template <typename Type>
@@ -414,10 +414,10 @@
Type *extend_min (Type &obj) { return extend_min (hb_addressof (obj)); }
template <typename Type, typename ...Ts>
- Type *extend (Type *obj, Ts &&...ds)
+ Type *extend (Type *obj, Ts&&... ds)
{ return extend_size (obj, obj->get_size (hb_forward<Ts> (ds)...)); }
template <typename Type, typename ...Ts>
- Type *extend (Type &obj, Ts &&...ds)
+ Type *extend (Type &obj, Ts&&... ds)
{ return extend (hb_addressof (obj), hb_forward<Ts> (ds)...); }
/* Output routines. */
diff --git a/src/hb-subset.hh b/src/hb-subset.hh
index 1c3f41f..b8dd07a 100644
--- a/src/hb-subset.hh
+++ b/src/hb-subset.hh
@@ -44,14 +44,14 @@
private:
template <typename T, typename ...Ts> auto
- _dispatch (const T &obj, hb_priority<1>, Ts &&...ds) HB_AUTO_RETURN
+ _dispatch (const T &obj, hb_priority<1>, Ts&&... ds) HB_AUTO_RETURN
( obj.subset (this, hb_forward<Ts> (ds)...) )
template <typename T, typename ...Ts> auto
- _dispatch (const T &obj, hb_priority<0>, Ts &&...ds) HB_AUTO_RETURN
+ _dispatch (const T &obj, hb_priority<0>, Ts&&... ds) HB_AUTO_RETURN
( obj.dispatch (this, hb_forward<Ts> (ds)...) )
public:
template <typename T, typename ...Ts> auto
- dispatch (const T &obj, Ts &&...ds) HB_AUTO_RETURN
+ dispatch (const T &obj, Ts&&... ds) HB_AUTO_RETURN
( _dispatch (obj, hb_prioritize, hb_forward<Ts> (ds)...) )
hb_subset_plan_t *plan;