Changeset 7427


Ignore:
Timestamp:
2004-05-25T13:32:36+12:00 (20 years ago)
Author:
mdewsnip
Message:

(Human Info) Made some parameters const.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/browseactiontools.cpp

    r2905 r7427  
    2828#include <ctype.h>
    2929
    30 void format_browsestring(text_t orig, text_t& formatted, int and_or)
     30void format_browsestring(const text_t& orig, text_t& formatted, int and_or)
    3131{
    3232 
    3333 
    34   text_t conj = "";
     34  text_t conj = g_EmptyText;
    3535 
    3636  if(and_or == 0){ conj = " | "; }
     
    5858// this stuff is all copied from the queryoptions code - don't ask how it all
    5959// hangs in with the filters - those things are a mystery
    60 void set_browsefilter_options(FilterRequest_t &request, text_t &browsestring,
     60void set_browsefilter_options(FilterRequest_t &request, const text_t &browsestring,
    6161                  cgiargsclass &args)
    6262{
     
    9696}
    9797
    98 bool remove_no_meta_results(text_t metaname, FilterResponse_t &response,
    99                 outconvertclass outconvert)
     98bool remove_no_meta_results(const text_t& metaname, FilterResponse_t &response,
     99                outconvertclass &outconvert)
    100100{
    101101 
     
    108108    //remove it.
    109109    text_t title = *((*check).metadata.find(metaname)->second).values.begin();
    110     if(title == "")
     110    if(title == g_EmptyText)
    111111      {
    112112   
  • trunk/gsdl/src/recpt/browseactiontools.h

    r2612 r7427  
    3232
    3333//this puts ands or ors into the querystring as necessary
    34 void format_browsestring(text_t orig, text_t& formatted, int and_or);
     34void format_browsestring(const text_t& orig, text_t& formatted, int and_or);
    3535
    3636//this thing sets up the search associated with a browse.  It's programmed by
    3737//witchcraft, so I don't really know how/why it works - I lifted the code from
    3838//somewhere else.
    39 void set_browsefilter_options(FilterRequest_t &request, text_t &browsestring,
     39void set_browsefilter_options(FilterRequest_t &request, const text_t &browsestring,
    4040                  cgiargsclass &args);
    4141
     
    4343//(whether it be for all documents or just the ones with specified terms)
    4444//that don't have the required "metaname" metadata element.
    45 bool remove_no_meta_results(text_t metaname, FilterResponse_t &response,
    46                 outconvertclass outconvert);
     45bool remove_no_meta_results(const text_t &metaname, FilterResponse_t &response,
     46                outconvertclass &outconvert);
    4747
    4848#endif
Note: See TracChangeset for help on using the changeset viewer.