Changeset 5906


Ignore:
Timestamp:
2003-11-19T16:47:47+13:00 (20 years ago)
Author:
sjboddie
Message:

Fixed a bug in some very old collection server code. There was a problem
preventing the docSet stuff from working when passed to mgqueryfilter.
I guess nobody's ever used this stuff!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/filter.cpp

    r2212 r5906  
    263263bool in_set (const text_tset &set1, const text_t &el) {
    264264  text_t::const_iterator here = el.begin();
    265   text_t::const_iterator end = el.begin();
     265  text_t::const_iterator end = el.end();
    266266  text_t tryel, tryel_add;
    267267  bool first = true;
     
    285285bool in_set (const text_tarray &set1, const text_t &el) {
    286286  text_t::const_iterator here = el.begin();
    287   text_t::const_iterator end = el.begin();
     287  text_t::const_iterator end = el.end();
    288288  text_t tryel, tryel_add;
    289289  bool first = true;
     
    299299
    300300    // see if this element is in the set
    301     text_tarray::const_iterator here = set1.begin();
    302     text_tarray::const_iterator end = set1.end();
    303     while (here != end) {
    304       if (*here == tryel) break;
    305       here ++;
     301    text_tarray::const_iterator h = set1.begin();
     302    text_tarray::const_iterator e = set1.end();
     303    while (h != e) {
     304      if (*h == tryel) return true;
     305      h++;
    306306    }
    307     if (here != end) return true;
    308307  } while (here != end);
    309308
Note: See TracChangeset for help on using the changeset viewer.