diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-06-05 18:05:17 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-06-05 18:05:17 +0000 |
commit | e7253d893c20e449eb6234546e7002a09da61daa (patch) | |
tree | d8665d4c61ba1e3a13e9158495fa87d3761f5311 | |
parent | 7e6a9a60ff5cb730b743acca4835578e0c9c0da2 (diff) | |
download | postgresql-e7253d893c20e449eb6234546e7002a09da61daa.tar.gz postgresql-e7253d893c20e449eb6234546e7002a09da61daa.zip |
Remove redeclarations of default parameter values from
PgDatabase::DisplayTuples and PgDatabase::PrintTuples. This is incorrect
according to strict interpretation of the C++ spec, and some compilers
will reject it. Also silence g++ warning about unused parameter.
-rw-r--r-- | src/interfaces/libpq++/pgdatabase.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/interfaces/libpq++/pgdatabase.cc b/src/interfaces/libpq++/pgdatabase.cc index bc4793c704e..0c26a6a5be2 100644 --- a/src/interfaces/libpq++/pgdatabase.cc +++ b/src/interfaces/libpq++/pgdatabase.cc @@ -10,7 +10,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.2 1999/05/30 15:17:57 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.3 1999/06/05 18:05:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,39 +18,39 @@ #include "pgdatabase.h" -void PgDatabase::DisplayTuples(FILE *out = 0, int fillAlign = 1, - const char* fieldSep = "|",int printHeader = 1, int quiet = 0) +void PgDatabase::DisplayTuples(FILE *out, int fillAlign, + const char* fieldSep, int printHeader, + int /* quiet */) { -PQprintOpt po; + PQprintOpt po; - memset(&po,0,sizeof(po)); + memset(&po,0,sizeof(po)); - po.align = (pqbool)fillAlign; - po.fieldSep = (char *)fieldSep; - po.header = (pqbool)printHeader; - - PQprint(out,pgResult,&po); + po.align = (pqbool)fillAlign; + po.fieldSep = (char *)fieldSep; + po.header = (pqbool)printHeader; + PQprint(out,pgResult,&po); } -void PgDatabase::PrintTuples(FILE *out = 0, int printAttName = 1, int terseOutput = 0, int width = 0) +void PgDatabase::PrintTuples(FILE *out, int printAttName, int terseOutput, + int width) { -PQprintOpt po; + PQprintOpt po; - memset(&po,0,sizeof(po)); + memset(&po,0,sizeof(po)); - po.align = (pqbool)width; + po.align = (pqbool)width; - if(terseOutput) po.fieldSep = strdup("|"); - else po.fieldSep = ""; + if(terseOutput) po.fieldSep = strdup("|"); + else po.fieldSep = ""; - po.header = (pqbool)printAttName; - - PQprint(out,pgResult,&po); + po.header = (pqbool)printAttName; + PQprint(out,pgResult,&po); } |