Changeset 995


Ignore:
Timestamp:
2000-03-01T10:00:38+13:00 (24 years ago)
Author:
sjboddie
Message:

fixed some compiler warnings

Location:
trunk/gsdl
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/display.cpp

    r791 r995  
    2828/*
    2929   $Log$
     30   Revision 1.17  2000/02/29 21:00:38  sjboddie
     31   fixed some compiler warnings
     32
    3033   Revision 1.16  1999/11/25 21:53:08  sjboddie
    3134   fixed bug in logout
     
    10561059  text_t::const_iterator tthere = inputtext.begin();
    10571060  text_t::const_iterator ttend = inputtext.end();
    1058   unsigned short c;
     1061  unsigned short c = '\0';
    10591062
    10601063  if (package.empty()) package = "Global";
     
    13821385  text_t::const_iterator hereit, endit;
    13831386  text_t aparam;
    1384   unsigned short c, quote;
     1387  unsigned short c = '\0', quote = '\0';
    13851388
    13861389  //  cerr << "r: " << recursiondepth << "\n";
  • trunk/gsdl/src/recpt/datelistbrowserclass.cpp

    r765 r995  
    2828/*
    2929   $Log$
     30   Revision 1.5  2000/02/29 21:00:27  sjboddie
     31   fixed some compiler warnings
     32
    3033   Revision 1.4  1999/11/01 22:04:11  sjboddie
    3134   just a few small changes (that means I can't remember ;)
     
    6871}
    6972
     73int datelistbrowserclass::output_section_group (ResultDocInfo_t &/*section*/, cgiargsclass &/*args*/,
     74                        const text_t &/*collection*/, int /*colnumber*/,
     75                        format_t * /*formatlistptr*/, bool /*use_table*/,
     76                        text_tset &/*metadata*/, bool &/*getParents*/,
     77                        recptproto * /*collectproto*/, displayclass &/*disp*/,
     78                        outconvertclass &/*outconvert*/, ostream &/*textout*/,
     79                        ostream &/*logout*/) {
     80  return 0;
     81}
    7082
    7183int datelistbrowserclass::output_section_group (FilterResponse_t &sections, cgiargsclass &args,
     
    151163  return 1;
    152164}
    153 
  • trunk/gsdl/src/recpt/datelistbrowserclass.h

    r765 r995  
    4141  text_t get_browser_name ();
    4242
    43   void load_metadata_defaults (text_tset &metadata);
     43  virtual void load_metadata_defaults (text_tset &metadata);
    4444
    45   text_t get_default_formatstring ();
     45  virtual text_t get_default_formatstring ();
     46
     47  virtual int output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
     48                    const text_t &collection, int colnumber, format_t *formatlistptr,
     49                    bool use_table, text_tset &metadata, bool &getParents,
     50                    recptproto *collectproto, displayclass &disp,
     51                    outconvertclass &outconvert, ostream &textout, ostream &logout);
    4652 
    47   int output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    48                 const text_t &collection, int colnumber, format_t *formatlistptr,
    49                 bool use_table, text_tset &metadata, bool &getParents,
    50                 recptproto *collectproto, displayclass &disp,
    51                 outconvertclass &outconvert, ostream &textout, ostream &logout);
     53  virtual int output_section_group (FilterResponse_t &sections, cgiargsclass &args,
     54                    const text_t &collection, int colnumber, format_t *formatlistptr,
     55                    bool use_table, text_tset &metadata, bool &getParents,
     56                    recptproto *collectproto, displayclass &disp,
     57                    outconvertclass &outconvert, ostream &textout, ostream &logout);
    5258};
    5359
  • trunk/gsdl/src/recpt/historydb.cpp

    r963 r995  
    2828/*
    2929  $Log$
     30  Revision 1.4  2000/02/29 21:00:28  sjboddie
     31  fixed some compiler warnings
     32
    3033  Revision 1.3  2000/02/21 22:01:02  sjboddie
    3134  gsdlhome now comes from gsdlsite.cfg
     
    149152
    150153  text_t historyfile = filename_cat(gsdlhome, "etc", "history.db");
    151   bool result;
     154  bool result = false;
    152155  // open the history database 
    153156  gdbmclass historydb;
     
    238241  // open for writing
    239242  if (!historydb.opendatabase(historyfile, GDBM_WRITER, 1000, true)) return false;
    240 
    241   if (historydb.setinfo(userid, newhistory))
    242     result=true;
    243    
     243 
     244  if (historydb.setinfo(userid, newhistory)) result = true;
     245 
    244246  historydb.closedatabase();
    245247  return result;
    246  
    247 
    248248}
    249249
    250250bool get_selection_params (text_t &data, int &start, int &stop) {
    251 
     251 
    252252  text_tarray results;
    253 
     253 
    254254  splitchar(data.begin(), data.end(), '-', results);
    255255  if (results.size()==2 && is_number(results[0]) && is_number(results[1])) {
    256       start=results[0].getint();
    257       stop=results[1].getint();
    258      
    259       return true;
    260 
    261   } else {
    262     // error message
    263     return false;
    264   }
     256    start=results[0].getint();
     257    stop=results[1].getint();
     258    return true;
     259  }
     260 
     261  // error message
     262  return false;
    265263}
    266264
     
    302300    args.push_back(newquery);
    303301    joinchar(args, '&', record.entry);
    304  
     302   
    305303    return true;
    306   } else return false;
    307 }// expand query
     304  }
     305  return false;
     306}
    308307
    309308// replaces a reference to a previous query with the search
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r765 r995  
    2828/*
    2929   $Log$
     30   Revision 1.7  2000/02/29 21:00:29  sjboddie
     31   fixed some compiler warnings
     32
    3033   Revision 1.6  1999/11/01 22:04:12  sjboddie
    3134   just a few small changes (that means I can't remember ;)
     
    174177}
    175178
     179int hlistbrowserclass::output_section_group (FilterResponse_t &/*sections*/, cgiargsclass &/*args*/,
     180                         const text_t &/*collection*/, int /*colnumber*/,
     181                         format_t * /*formatlistptr*/, bool /*use_table*/,
     182                         text_tset &/*metadata*/, bool &/*getParents*/,
     183                         recptproto * /*collectproto*/, displayclass &/*disp*/,
     184                         outconvertclass &/*outconvert*/, ostream &/*textout*/,
     185                         ostream &/*logout*/) {
     186  return 0;
     187}
  • trunk/gsdl/src/recpt/hlistbrowserclass.h

    r938 r995  
    5353                    bool use_table, text_tset &metadata, bool &getParents,
    5454                    recptproto *collectproto, displayclass &disp,
    55                     outconvertclass &outconvert, ostream &textout,
    56                     ostream &logout);
     55                    outconvertclass &outconvert, ostream &textout, ostream &logout);
     56
     57  virtual int output_section_group (FilterResponse_t &sections, cgiargsclass &args,
     58                    const text_t &collection, int colnumber, format_t *formatlistptr,
     59                    bool use_table, text_tset &metadata, bool &getParents,
     60                    recptproto *collectproto, displayclass &disp,
     61                    outconvertclass &outconvert, ostream &textout, ostream &logout);
    5762
    5863};
  • trunk/gsdl/src/recpt/statusaction.cpp

    r805 r995  
    2828/*
    2929   $Log$
     30   Revision 1.25  2000/02/29 21:00:31  sjboddie
     31   fixed some compiler warnings
     32
    3033   Revision 1.24  1999/12/06 01:13:02  sjboddie
    3134   macrofiles is now a set to allow for multiple gsdlhomes
     
    488491  text_t &arg_pr = args["pr"];
    489492  text_t &arg_c = args["c"];
    490   recptproto *rproto;
     493  recptproto *rproto = NULL;
    491494  recptprotolistclass::iterator rprotolist_here = rprotolist->begin();
    492495  recptprotolistclass::iterator rprotolist_end = rprotolist->end();
     
    508511
    509512  } else {
     513    // rproto can't be NULL to get here
    510514    ColInfoResponse_t collectinfo;
    511515    comerror_t err;
Note: See TracChangeset for help on using the changeset viewer.