Ignore:
Timestamp:
2002-02-04T10:49:17+13:00 (22 years ago)
Author:
sjboddie
Message:

Fixed a few minor issues that surfaced when attempting to get compiling
under gcc-3.0 (note that mgpp still won't compile with gcc-3.0)

File:
1 edited

Legend:

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

    r2146 r2937  
    188188  // note that we're treating indexes of type 'all' (i.e. text,Title,Creator)
    189189  // or other composite indexes that contain "text" as if they were simply 'text' indexes
    190   if (type == "text" || type == "all" || findword(type.begin(),type.end(),"text")) {
     190  if ((type == "text") || (type == "all") || (findword(type.begin(),type.end(),"text") != type.end())) {
    191191    char *doc = NULL;
    192192    int doclen = 0;
     
    238238    text_tarray::const_iterator subvalue_end = (*tarr_ptr).end();
    239239    while (subvalue_here != subvalue_end) {
    240       if (subvalue_here != NULL) {
    241     metadata = (to_utf8(*subvalue_here)).getcarr(metadata_len);
    242     result = doc_phrase_search ((unsigned char *)metadata, metadata_len, phrase);
    243     delete [] metadata;
    244 
    245     if (result) return true;
    246       }
    247      
     240      metadata = (to_utf8(*subvalue_here)).getcarr(metadata_len);
     241      result = doc_phrase_search ((unsigned char *)metadata, metadata_len, phrase);
     242      delete [] metadata;
     243
     244      if (result) return true;
    248245      subvalue_here++;
    249246    }
Note: See TracChangeset for help on using the changeset viewer.