diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-10-31 10:55:59 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-10-31 10:55:59 -0400 |
commit | cacbdd78106526d7c4f11f90b538f96ba8696fb0 (patch) | |
tree | 68b44c07247b99a1b316c01f66ecf0f8d6e96127 /contrib/cube/cube.c | |
parent | 343bb134ea20d3b7286c620c15a067da79cab724 (diff) | |
download | postgresql-cacbdd78106526d7c4f11f90b538f96ba8696fb0.tar.gz postgresql-cacbdd78106526d7c4f11f90b538f96ba8696fb0.zip |
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming
practice.
David Rowley
Diffstat (limited to 'contrib/cube/cube.c')
-rw-r--r-- | contrib/cube/cube.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index dadda133b91..9524943ca80 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -335,18 +335,18 @@ cube_out(PG_FUNCTION_ARGS) for (i = 0; i < dim; i++) { if (i > 0) - appendStringInfo(&buf, ", "); + appendStringInfoString(&buf, ", "); appendStringInfo(&buf, "%.*g", ndig, LL_COORD(cube, i)); } appendStringInfoChar(&buf, ')'); if (!cube_is_point_internal(cube)) { - appendStringInfo(&buf, ",("); + appendStringInfoString(&buf, ",("); for (i = 0; i < dim; i++) { if (i > 0) - appendStringInfo(&buf, ", "); + appendStringInfoString(&buf, ", "); appendStringInfo(&buf, "%.*g", ndig, UR_COORD(cube, i)); } appendStringInfoChar(&buf, ')'); |