jdonohue    00/02/17 11:47:31

  Modified:    c/src/TestXSLT process.cpp
  Log:
  Replace data with c_str
  
  Revision  Changes    Path
  1.8       +7 -7      xml-xalan/c/src/TestXSLT/process.cpp
  
  Index: process.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/TestXSLT/process.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- process.cpp       2000/02/16 20:54:39     1.7
  +++ process.cpp       2000/02/17 19:47:31     1.8
  @@ -392,7 +392,7 @@
   static inline bool exists(std::string &filename)
   {
        struct stat statBuffer;
  -     return (0 == stat(filename.data(), &statBuffer));
  +     return (0 == stat(filename.c_str(), &statBuffer));
   }
   
   static       CmdLineParams theParams;
  @@ -469,8 +469,8 @@
        {
                String2StringMapType::const_iterator it = 
params.paramsMap.begin();
                for ( ; it != params.paramsMap.end(); it++)
  -                     processor.setStylesheetParam((*it).first.data(),
  -                                     (*it).second.data());
  +                     processor.setStylesheetParam((*it).first.c_str(),
  +                                     (*it).second.c_str());
        }
   
        /*
  @@ -478,7 +478,7 @@
         */
        if (params.indentAmount)
                xmlParserLiaison.setIndent(params.indentAmount);
  -     xmlParserLiaison.setSpecialCharacters(params.specialCharacters.data());
  +     xmlParserLiaison.setSpecialCharacters(params.specialCharacters.c_str());
        
xmlParserLiaison.SetShouldExpandEntityRefs(params.shouldExpandEntityRefs);
   
        bool noOutputFileSpecified =  outputFileNameBase.empty();
  @@ -499,7 +499,7 @@
        DOMString xslFileName;
        if(0 != params.xslFileName.size())
        {
  -             xslFileName = params.xslFileName.data();
  +             xslFileName = params.xslFileName.c_str();
        }
   
        stylesheet = processor.processStylesheet(xslFileName, 
theConstructionContext);
  @@ -518,7 +518,7 @@
   
                std::string theInputFileName = params.inFileNames[i];
                std::string outputFileName;
  -             XSLTInputSource theInputSource(theInputFileName.data());
  +             XSLTInputSource theInputSource(theInputFileName.c_str());
                DOM_Node sourceTree = 
processor.getSourceTreeFromInput(&theInputSource);
   
        /*
  @@ -580,7 +580,7 @@
                {
                        outputFileStream = 
                                std::auto_ptr<TextFileOutputStream>(new 
TextFileOutputStream(
  -                                                     outputFileName.data()));
  +                                                     
outputFileName.c_str()));
                        outputStream = outputFileStream.get();
                }
                XercesDOMPrintWriter    resultWriter(*outputStream);
  
  
  

Reply via email to