[pango/harfbuzz-ng] [HB] Fix warnings
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango/harfbuzz-ng] [HB] Fix warnings
- Date: Wed, 5 Aug 2009 19:32:45 +0000 (UTC)
commit 50295f03b7684e5fb72e3446d0ae3dcf3cacb384
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Aug 4 21:42:23 2009 -0400
[HB] Fix warnings
pango/opentype/hb-open-file-private.hh | 1 +
pango/opentype/hb-open-types-private.hh | 5 +++++
pango/opentype/hb-ot-layout-gsub-private.hh | 3 +--
3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/pango/opentype/hb-open-file-private.hh b/pango/opentype/hb-open-file-private.hh
index 5cb09da..e66b08a 100644
--- a/pango/opentype/hb-open-file-private.hh
+++ b/pango/opentype/hb-open-file-private.hh
@@ -82,6 +82,7 @@ typedef struct OffsetTable
for (unsigned int i = 0; i < count; i++)
if (!SANITIZE_BASE (tableDir[i], base))
return false;
+ return true;
}
private:
diff --git a/pango/opentype/hb-open-types-private.hh b/pango/opentype/hb-open-types-private.hh
index 1af7c08..05619df 100644
--- a/pango/opentype/hb-open-types-private.hh
+++ b/pango/opentype/hb-open-types-private.hh
@@ -484,6 +484,7 @@ struct GenericArrayOf
if (!SANITIZE (array[i]))
return false;
*/
+ return true;
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base) {
if (!SANITIZE_GET_SIZE()) return false;
@@ -491,6 +492,7 @@ struct GenericArrayOf
for (unsigned int i = 0; i < count; i++)
if (!array[i].sanitize (SANITIZE_ARG, base))
return false;
+ return true;
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base, const void *base2) {
if (!SANITIZE_GET_SIZE()) return false;
@@ -498,6 +500,7 @@ struct GenericArrayOf
for (unsigned int i = 0; i < count; i++)
if (!array[i].sanitize (SANITIZE_ARG, base, base2))
return false;
+ return true;
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base, unsigned int user_data) {
if (!SANITIZE_GET_SIZE()) return false;
@@ -505,6 +508,7 @@ struct GenericArrayOf
for (unsigned int i = 0; i < count; i++)
if (!array[i].sanitize (SANITIZE_ARG, base, user_data))
return false;
+ return true;
}
LenType len;
@@ -552,6 +556,7 @@ struct HeadlessArrayOf
if (!SANITIZE (array[i]))
return false;
*/
+ return true;
}
USHORT len;
diff --git a/pango/opentype/hb-ot-layout-gsub-private.hh b/pango/opentype/hb-ot-layout-gsub-private.hh
index 9d35e99..4d21f65 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.hh
+++ b/pango/opentype/hb-ot-layout-gsub-private.hh
@@ -592,8 +592,7 @@ struct ReverseChainSingleSubstFormat1
if (!SANITIZE_THIS (lookahead))
return false;
ArrayOf<GlyphID> &substitute = CAST (ArrayOf<GlyphID>, lookahead, lookahead.get_size ());
- if (!SANITIZE (substitute))
- return false;
+ return SANITIZE (substitute);
}
private:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]