Changeset 8934 for trunk/indexers


Ignore:
Timestamp:
2005-02-01T12:07:44+13:00 (19 years ago)
Author:
kjdon
Message:

changed strstream to stringstream, cos strstream is deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/jni/MGPPWrapperImpl.cpp

    r4237 r8934  
    33#include <strstream>
    44#else
    5 #include <iostream.h>
    6 #include <strstream.h>
     5#include <sstream>
    76#endif
    87
     
    477476  MGPPWrapperData * data = (MGPPWrapperData *)j_env->GetIntField(j_obj, FID_mgpp_data);
    478477 
    479   // print the data to an output string stream, then convert to char*, then to
     478  // print the data to a stringstream, then convert to char*, then to
    480479  //jstring
    481480
    482   ostrstream output;
     481  stringstream output;
    483482  output << "Query params:"<<endl
    484483    // need to change this to use platform specific separator for niceness
     
    492491         <<"max docs\t"<<data->queryInfo->maxDocs<<endl<<ends;
    493492
    494   char *result = output.str();
     493  const char *result = output.str().c_str();
    495494  jstring j_result = j_env->NewStringUTF(result);
    496495  delete result;
Note: See TracChangeset for help on using the changeset viewer.