Changeset 8486


Ignore:
Timestamp:
2004-11-08T17:01:28+13:00 (19 years ago)
Author:
jrm21
Message:

use the new displayclass::setcollectionmacro() for any macros that the
collection passed to us (from the collect.cfg file), instead of
setdefaultmacro().

File:
1 edited

Legend:

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

    r8470 r8486  
    13411341    // that.  --kjdon
    13421342    //if (args[(*params_here).first] != (*params_here).second) {
    1343       if (!first) pageparams += ",";
    1344       first = false;
     1343      if (first)
     1344    first = false;
     1345      else
     1346    pageparams += ",";
     1347
    13451348      pageparams += (*params_here).first;
    13461349      pageparams += "=";
     
    14081411    macros_map::const_iterator done_macro=cinfo.collection_macros.end();
    14091412    while (this_macro != done_macro) {
    1410       /* this should be a collectionmacro instead of a defaultmacro
    1411          I think, but setcollectionmacro is protected... */
    1412       disp.setdefaultmacro("Global",this_macro->first, // macro name
    1413                    this_macro->second.first,   // params
    1414                    //g_EmptyText,             // filename...
    1415                    this_macro->second.second); // value
     1413
     1414      disp.setcollectionmacro("Global",           // package
     1415                  this_macro->first,          // macro name
     1416                  this_macro->second.first,   // params
     1417                  this_macro->second.second); // value
    14161418      ++this_macro;
    14171419    }
Note: See TracChangeset for help on using the changeset viewer.