From 10880dbfba9afd5a963f5bb36fe9a3707c1c35a1 Mon Sep 17 00:00:00 2001 From: Jon Phillips Date: Wed, 23 Aug 2006 07:08:06 +0000 Subject: Ok, committed msgloan's patch to convert gbooleans to bools thus completing one major janitorial task we identified.... (bzr r1633) --- src/svg/svg-color.cpp | 2 +- src/svg/svg-path.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/svg') diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp index 372570883..6bbcdd884 100644 --- a/src/svg/svg-color.cpp +++ b/src/svg/svg-color.cpp @@ -235,7 +235,7 @@ internal_sp_svg_read_color(gchar const *str, gchar const **end_ptr, guint32 def) *end_ptr = str + i; } } else if (strneq(str, "rgb(", 4)) { - gboolean hasp, hasd; + bool hasp, hasd; gchar *s, *e; gdouble r, g, b; diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp index 6598a5731..b37814164 100644 --- a/src/svg/svg-path.cpp +++ b/src/svg/svg-path.cpp @@ -63,7 +63,7 @@ struct RSVGParsePathCtx { double spx, spy; /* beginning of current subpath point */ char cmd; /* current command (lowercase) */ int param; /* parameter number */ - gboolean rel; /* true if relative coords */ + bool rel; /* true if relative coords */ double params[7]; /* parameters that have been parsed */ }; @@ -221,7 +221,7 @@ static void rsvg_parse_path_default_xy(RSVGParsePathCtx *ctx, int n_params) } } -static void rsvg_parse_path_do_cmd(RSVGParsePathCtx *ctx, gboolean final) +static void rsvg_parse_path_do_cmd(RSVGParsePathCtx *ctx, bool final) { double x1, y1, x2, y2, x3, y3; @@ -455,10 +455,10 @@ static void rsvg_parse_path_data(RSVGParsePathCtx *ctx, const char *data) int i = 0; double val = 0; char c = 0; - gboolean in_num = FALSE; - gboolean in_frac = FALSE; - gboolean in_exp = FALSE; - gboolean exp_wait_sign = FALSE; + bool in_num = FALSE; + bool in_frac = FALSE; + bool in_exp = FALSE; + bool exp_wait_sign = FALSE; int sign = 0; int exp = 0; int exp_sign = 0; -- cgit v1.2.3