Ignore:
Timestamp:
2004-05-24T15:34:40+12:00 (20 years ago)
Author:
mdewsnip
Message:

(Human Info) Now delete all char* variables from text_t.getcstr() function with delete[] variable, and all "" are now g_EmptyText (const text_t("")).

File:
1 edited

Legend:

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

    r2905 r7381  
    7676    errfile=stderr;
    7777  }
    78   delete errf_str;
     78  delete []errf_str;
    7979  yyout=errfile;
    8080
     
    8686  if (yyin==NULL) {
    8787    cerr << "Could not open "<<filename_str<<" for reading.\n";
    88     delete filename_str;
     88    delete []filename_str;
    8989    return;
    9090  }
    91   delete filename_str;
     91  delete []filename_str;
    9292  zconfigparse();
    9393
     
    239239       << coll_str
    240240       << endl;
    241     delete coll_str;
     241    delete []coll_str;
    242242    return;
    243243  }
     
    335335 
    336336  // leave response.termInfo empty
    337   // response.termInfo.push_back(""); ??????? (should be empty if not req.)
     337  // response.termInfo.push_back(g_EmptyText); ??????? (should be empty if not req.)
    338338
    339339  // See if this is for a query action
     
    484484           again in the request, so for now we'll take advantage of this.*/
    485485
    486         int querytype=0; text_t field="";
     486        int querytype=0; text_t field=g_EmptyText;
    487487
    488488        // get the Query out of the filterOptions. (we need get the Title)
    489         text_t query="";
     489        text_t query=g_EmptyText;
    490490        OptionValue_tarray::iterator opthere=request.filterOptions.begin();
    491491        OptionValue_tarray::iterator opt_end=request.filterOptions.end();
     
    508508        docs_here->metadata["Title"].values.push_back(doctitle);       
    509509      } else {
    510         docs_here->metadata[*fields_here].values.push_back("");
     510        docs_here->metadata[*fields_here].values.push_back(g_EmptyText);
    511511      }
    512512      fields_here++;
Note: See TracChangeset for help on using the changeset viewer.