? .DS_Store Index: Common/vtkGarbageCollector.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkGarbageCollector.cxx,v retrieving revision 1.30 diff -r1.30 vtkGarbageCollector.cxx 20a21 > #include 613c614 < ostrstream msg; --- > vtksys_ios::ostringstream msg; 618,620c619 < msg << ends; < vtkDebugMacro(<< msg.str()); < msg.rdbuf()->freeze(0); --- > vtkDebugMacro(<< msg.str().c_str()); 711c710 < ostrstream msg; --- > vtksys_ios::ostringstream msg; 723,725c722 < msg << ends; < vtkDebugMacro(<< msg.str()); < msg.rdbuf()->freeze(0); --- > vtkDebugMacro(<< msg.str().c_str()); Index: Common/vtkIOStream.h =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkIOStream.h,v retrieving revision 1.8 diff -r1.8 vtkIOStream.h 36d35 < # include // Include real ansi strstreams. 55,57d53 < using std::ostrstream; < using std::istrstream; < using std::strstream; 74,78d69 < # if defined(_MSC_VER) < # include // Include old-style strstream from MSVC. < # else < # include // Include old-style strstream. < # endif Index: Common/vtkObjectBase.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkObjectBase.cxx,v retrieving revision 1.15 diff -r1.15 vtkObjectBase.cxx 19a20,21 > #include > 180c182 < ostrstream revisions; --- > vtksys_ios::ostringstream revisions; 182,183c184 < revisions << ends; < const char* c = revisions.str(); --- > const char* c = revisions.str().c_str(); 225d225 < revisions.rdbuf()->freeze(0); Index: Common/vtkPythonUtil.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkPythonUtil.cxx,v retrieving revision 1.77 diff -r1.77 vtkPythonUtil.cxx 27a28,29 > > #include 103c105 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; 106,107c108 < PyObject *res = PyString_FromString(vtkmsg_with_warning_C4701.str()); < vtkmsg_with_warning_C4701.rdbuf()->freeze(0); --- > PyObject *res = PyString_FromString(vtkmsg_with_warning_C4701.str().c_str()); Index: Common/Testing/Cxx/otherArrays.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherArrays.cxx,v retrieving revision 1.24 diff -r1.24 otherArrays.cxx 28a29,30 > #include > 669c671 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Common/Testing/Cxx/otherByteSwap.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherByteSwap.cxx,v retrieving revision 1.10 diff -r1.10 otherByteSwap.cxx 22a23,24 > #include > 157c159 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Common/Testing/Cxx/otherStringArray.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherStringArray.cxx,v retrieving revision 1.6 diff -r1.6 otherStringArray.cxx 21a22,23 > #include > 202c204 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Common/Testing/Cxx/otherTimerLog.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherTimerLog.cxx,v retrieving revision 1.22 diff -r1.22 otherTimerLog.cxx 22a23,24 > #include > 71c73 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherCellArray.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellArray.cxx,v retrieving revision 1.1 diff -r1.1 otherCellArray.cxx 26a27,28 > #include > 84c86 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherCellBoundaries.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellBoundaries.cxx,v retrieving revision 1.1 diff -r1.1 otherCellBoundaries.cxx 38a39 > #include 497c498 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherCellPosition.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellPosition.cxx,v retrieving revision 1.1 diff -r1.1 otherCellPosition.cxx 38a39,40 > #include > 581c583 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherColorTransferFunction.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherColorTransferFunction.cxx,v retrieving revision 1.15 diff -r1.15 otherColorTransferFunction.cxx 22a23,24 > #include > 150c152 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherEmptyCell.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherEmptyCell.cxx,v retrieving revision 1.1 diff -r1.1 otherEmptyCell.cxx 24a25,26 > #include > 96c98 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherRectilinearGrid.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherRectilinearGrid.cxx,v retrieving revision 1.1 diff -r1.1 otherRectilinearGrid.cxx 30a31,32 > #include > 600c602 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/otherStructuredGrid.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherStructuredGrid.cxx,v retrieving revision 1.1 diff -r1.1 otherStructuredGrid.cxx 30a31,32 > #include > 632c634 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Filtering/Testing/Cxx/quadraticEvaluation.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/quadraticEvaluation.cxx,v retrieving revision 1.3 diff -r1.3 quadraticEvaluation.cxx 31a32,33 > #include > 399c401 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: GenericFiltering/Testing/Cxx/otherCreation.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/GenericFiltering/Testing/Cxx/otherCreation.cxx,v retrieving revision 1.12 diff -r1.12 otherCreation.cxx 1683c1683 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Hybrid/vtkFacetReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Hybrid/vtkFacetReader.cxx,v retrieving revision 1.3 diff -r1.3 vtkFacetReader.cxx 32a33 > #include 292c293,294 < istrstream lineStream(strPtr); --- > vtkstd::string str(strPtr, stringBuffer.size()); > vtksys_ios::istringstream lineStream(str); Index: Hybrid/vtkRIBExporter.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Hybrid/vtkRIBExporter.cxx,v retrieving revision 1.63 diff -r1.63 vtkRIBExporter.cxx 42a43,44 > #include > 840c842 < ostrstream str_with_warning_C4701; --- > vtksys_ios::ostringstream str_with_warning_C4701; 858,860c860 < str_with_warning_C4701 << ends; < fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str() ); < str_with_warning_C4701.rdbuf()->freeze(0); --- > fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str().c_str() ); 866c866 < ostrstream str_with_warning_C4701; --- > vtksys_ios::ostringstream str_with_warning_C4701; 884,886c884 < str_with_warning_C4701 << ends; < fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str() ); < str_with_warning_C4701.rdbuf()->freeze(0); --- > fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str().c_str() ); 892c890 < ostrstream str_with_warning_C4701; --- > vtksys_ios::ostringstream str_with_warning_C4701; 911,913c909 < str_with_warning_C4701 << ends; < fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str() ); < str_with_warning_C4701.rdbuf()->freeze(0); --- > fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str().c_str() ); 1096c1092 < ostrstream str_with_warning_C4701; --- > vtksys_ios::ostringstream str_with_warning_C4701; 1114,1116c1110 < str_with_warning_C4701 << ends; < fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str() ); < str_with_warning_C4701.rdbuf()->freeze(0); --- > fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str().c_str() ); 1122c1116 < ostrstream str_with_warning_C4701; --- > vtksys_ios::ostringstream str_with_warning_C4701; 1140,1142c1134 < str_with_warning_C4701 << ends; < fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str() ); < str_with_warning_C4701.rdbuf()->freeze(0); --- > fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str().c_str() ); 1148c1140 < ostrstream str_with_warning_C4701; --- > vtksys_ios::ostringstream str_with_warning_C4701; 1166,1168c1158 < str_with_warning_C4701 << ends; < fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str() ); < str_with_warning_C4701.rdbuf()->freeze(0); --- > fprintf ( this->FilePtr, "%s", str_with_warning_C4701.str().c_str() ); Index: IO/vtkDataReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkDataReader.cxx,v retrieving revision 1.140 diff -r1.140 vtkDataReader.cxx 42a43 > #include 375c376 < this->IS = new istrstream(this->InputArray->GetPointer(0), --- > vtkstd::string str(this->InputArray->GetPointer(0), 377a379 > this->IS = new vtksys_ios::istringstream(str); 383c385,386 < this->IS = new istrstream(this->InputString, this->InputStringLength); --- > vtkstd::string str(this->InputString, this->InputStringLength); > this->IS = new vtksys_ios::istringstream(str); 2441,2442c2444,2445 < ostrstream str; < int cc = 0; --- > vtksys_ios::ostringstream str; > size_t cc = 0; 2444,2445c2447,2448 < int len = static_cast(strlen(name)); < int reslen = 0; --- > size_t len = strlen(name); > size_t reslen = 0; 2451c2454 < if ( cc <= len - 3 ) --- > if ( cc <= (len - 3) ) 2469,2471c2472 < str << ends; < strncpy(resname, str.str(), reslen+1); < str.rdbuf()->freeze(0); --- > strncpy(resname, str.str().c_str(), reslen+1); Index: IO/vtkDataWriter.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkDataWriter.cxx,v retrieving revision 1.116 diff -r1.116 vtkDataWriter.cxx 39a40,41 > #include > 168,169c170,171 < fptr = new ostrstream(this->OutputString, < this->OutputStringAllocatedLength); --- > vtkstd::string str(this->OutputString, this->OutputStringAllocatedLength); > fptr = new vtksys_ios::ostringstream(str); 1260,1262c1262,1263 < char *tmp; < ostrstream *ostr = (ostrstream*)(fp); < this->OutputStringLength = ostr->pcount(); --- > vtksys_ios::ostringstream *ostr = (vtksys_ios::ostringstream*)(fp); > this->OutputStringLength = ostr->str().length(); 1269,1270c1270,1271 < tmp = ostr->str(); < if (tmp != this->OutputString) --- > const char *tmp = ostr->str().c_str(); > if (strcmp(this->OutputString, tmp) != 0) 1274d1274 < this->OutputString = tmp; Index: IO/vtkFLUENTReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkFLUENTReader.cxx,v retrieving revision 1.12 diff -r1.12 vtkFLUENTReader.cxx 54a55 > #include "vtksys/ios/sstream" 2500,2501c2501 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 2643,2644c2643 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 2729,2730c2728 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 2846,2847c2844 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 2896,2897c2893 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 2954,2955c2950 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 3010,3011c3005 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 3064,3065c3058 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); 4016,4017c4009 < strstream infostream; < infostream << info.c_str() << ends; --- > vtksys_ios::stringstream infostream(info); 4038d4029 < strstream pdatastream; 4041c4032 < pdatastream << pdata.c_str() << ends; --- > vtksys_ios::stringstream pdatastream(pdata); Index: IO/vtkMINCImageAttributes.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkMINCImageAttributes.cxx,v retrieving revision 1.7 diff -r1.7 vtkMINCImageAttributes.cxx 71a72 > #include 301c302 < ostrstream os; --- > vtksys_ios::ostringstream os; 342,343d342 < os << ends; < 345c344 < const char *str = os.str(); --- > const char *str = os.str().c_str(); 370,371d368 < os.rdbuf()->freeze(0); < Index: IO/vtkOpenFOAMReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkOpenFOAMReader.cxx,v retrieving revision 1.9 diff -r1.9 vtkOpenFOAMReader.cxx 21d20 < #include 23a23 > #include 215c215 < strstream tempPath; --- > vtksys_ios::stringstream tempPath; 217c217 < tempPath << this->Steps[this->TimeStep] << ends; --- > tempPath << this->Steps[this->TimeStep]; 222c222 < int opened = directory->Open(tempPath.str()); --- > int opened = directory->Open(tempPath.str().c_str()); 244c244 < vtkstd::string type(this->GetDataType(tempPath.str(), --- > vtkstd::string type(this->GetDataType(tempPath.str().c_str(), 259c259 < delete [] tempPath.str(); --- > 757,758c757 < strstream tokenizer; < tokenizer << line; --- > vtksys_ios::stringstream tokenizer(line); 766,768c765,766 < strstream conversion; < conversion << token; < conversion >> value; --- > > vtksys_ios::stringstream conversion(token); 850,851c848,849 < strstream tokenizer; < tokenizer << temp; --- > vtksys_ios::stringstream tokenizer(temp); > 899c897 < strstream parser; --- > vtksys_ios::stringstream parser; 907c905 < parser << tempStep << ends; --- > parser << tempStep; 911c909 < parser << ios::scientific < parser << ios::scientific <Open((this->PathPrefix->value+parser.str()).c_str())) --- > if(test->Open((this->PathPrefix->value+parser.str().c_str()).c_str())) 930d927 < delete[] parser.str(); 990c987 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 1107c1104 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 1184c1181 < strstream ascTokenizer; --- > vtksys_ios::stringstream ascTokenizer; 1192c1189 < strstream lineTokenizer; --- > vtksys_ios::stringstream lineTokenizer; 1259,1260c1256,1257 < strstream tokenizer; < tokenizer << this->NumFaces << ends; --- > vtksys_ios::stringstream tokenizer; > tokenizer << this->NumFaces; 1382,1383c1379,1380 < strstream tokenizer; < tokenizer << this->NumFaces << ends; --- > vtksys_ios::stringstream tokenizer; > tokenizer << this->NumFaces; 1460,1461c1457,1458 < strstream path; < strstream timeStep; --- > vtksys_ios::stringstream path; > vtksys_ios::stringstream timeStep; 1480,1481c1477,1478 < timeStep << Steps[i] << ends; < path << this->PathPrefix->value < timeStep << Steps[i]; > path << this->PathPrefix->value <Open(path.str()); --- > directory->Open(path.str().c_str()); 1495c1492 < path << "polyMesh/" << ends; --- > path << "polyMesh/"; 1499c1496 < polyMeshDirectory->Open(path.str()); --- > polyMeshDirectory->Open(path.str().c_str()); 1508c1505 < this->PolyMeshPointsDir->value[i] = timeStep.str(); --- > this->PolyMeshPointsDir->value[i] = timeStep.str().c_str(); 1513c1510 < this->PolyMeshFacesDir->value[i] = timeStep.str(); --- > this->PolyMeshFacesDir->value[i] = timeStep.str().c_str(); 1571,1572c1568 < delete[] timeStep.str(); < delete [] path.str(); --- > 1604c1600 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 1681,1684c1677,1679 < strstream varPath; < varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << < varName << ends; < vtkDebugMacro(<<"Get internal variable: "< vtksys_ios::stringstream varPath; > varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName; > vtkDebugMacro(<<"Get internal variable: "< ifstream * input = new ifstream(varPath.str().c_str(), ios::in VTK_IOS_NOCREATE); 1694d1688 < delete[] varPath.str(); 1713c1707 < input->open(varPath.str(), ios::binary | ios::in VTK_IOS_NOCREATE); --- > input->open(varPath.str().c_str(), ios::binary | ios::in VTK_IOS_NOCREATE); 1715c1709 < input->open(varPath.str(), ios::in VTK_IOS_NOCREATE); --- > input->open(varPath.str().c_str(), ios::in VTK_IOS_NOCREATE); 1721c1715 < input->open(varPath.str(),ios::in); --- > input->open(varPath.str().c_str(),ios::in); 1724d1717 < delete[] varPath.str(); 1727c1720 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 1957,1960c1950,1952 < strstream varPath; < varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << < varName << ends; < vtkDebugMacro(<<"Get boundary variable: "< vtksys_ios::stringstream varPath; > varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName; > vtkDebugMacro(<<"Get boundary variable: "< ifstream * input = new ifstream(varPath.str().c_str(), ios::in VTK_IOS_NOCREATE); 1970d1961 < delete[] varPath.str(); 1989c1980 < input->open(varPath.str(), ios::binary | ios::in VTK_IOS_NOCREATE); --- > input->open(varPath.str().c_str(), ios::binary | ios::in VTK_IOS_NOCREATE); 1991c1982 < input->open(varPath.str(), ios::in VTK_IOS_NOCREATE); --- > input->open(varPath.str().c_str(), ios::in VTK_IOS_NOCREATE); 1997c1988 < input->open(varPath.str(),ios::in); --- > input->open(varPath.str().c_str(),ios::in); 2000d1990 < delete[] varPath.str(); 2003c1993 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 2329c2319 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 2413c2403 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 2579c2569 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 2731c2721 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; 2922c2912 < strstream tokenizer; --- > vtksys_ios::stringstream tokenizer; Index: IO/vtkParticleReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkParticleReader.cxx,v retrieving revision 1.28 diff -r1.28 vtkParticleReader.cxx 33a34 > #include 96,97c97,98 < strstream is; < is << s.c_str() << ends;// no istringstream in VTK --- > vtksys_ios::stringstream is; > is << s.c_str(); Index: IO/vtkWriter.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkWriter.cxx,v retrieving revision 1.44 diff -r1.44 vtkWriter.cxx 23a24,25 > #include > 172c174 < ostrstream str; --- > vtksys_ios::ostringstream str; 200,202c202 < str << ends; < strcpy(resname, str.str()); < str.rdbuf()->freeze(0); --- > strcpy(resname, str.str().c_str()); Index: IO/vtkXMLDataElement.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLDataElement.cxx,v retrieving revision 1.26 diff -r1.26 vtkXMLDataElement.cxx 21a22 > #include 110c111 < ostrstream str; --- > vtksys_ios::ostringstream str; 114,115c115 < this->SetAttribute(atts[i], str.str()); < str.rdbuf()->freeze(0); --- > this->SetAttribute(atts[i], str.str().c_str()); 568,569c568,569 < strstream vstr; < vstr << str << ends; --- > vtksys_ios::stringstream vstr; > vstr << str; 837c837 < strstream vstr; --- > vtksys_ios::stringstream vstr; 843,845c843,845 < vstr << ends; < elem->SetAttribute(name, vstr.str()); < vstr.rdbuf()->freeze(0); --- > > elem->SetAttribute(name, vstr.str().c_str()); > Index: IO/vtkXMLMultiGroupDataWriter.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLMultiGroupDataWriter.cxx,v retrieving revision 1.4 diff -r1.4 vtkXMLMultiGroupDataWriter.cxx 48c48 < --- > #include 227c227 < ostrstream entry_with_warning_C4701; --- > vtksys_ios::ostringstream entry_with_warning_C4701; 231,233c231,232 < << "/>" << ends; < this->AppendEntry(entry_with_warning_C4701.str()); < delete[] entry_with_warning_C4701.str(); --- > << "/>"; > this->AppendEntry(entry_with_warning_C4701.str().c_str()); 255c254 < ostrstream entry_with_warning_C4701; --- > vtksys_ios::ostringstream entry_with_warning_C4701; 272,274c271,272 < << " file=\"" << fname.c_str() << "\"/>" << ends; < this->AppendEntry(entry_with_warning_C4701.str()); < delete[] entry_with_warning_C4701.str(); --- > << " file=\"" << fname.c_str() << "\"/>"; > this->AppendEntry(entry_with_warning_C4701.str().c_str()); 686c684 < ostrstream fn_with_warning_C4701; --- > vtksys_ios::ostringstream fn_with_warning_C4701; 690c688 < << this->Writers[index]->GetDefaultFileExtension() << ends; --- > << this->Writers[index]->GetDefaultFileExtension(); 692d689 < fn_with_warning_C4701.rdbuf()->freeze(0); Index: IO/vtkXMLPDataReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPDataReader.cxx,v retrieving revision 1.18 diff -r1.18 vtkXMLPDataReader.cxx 28a29,30 > #include > 435c437 < ostrstream fn_with_warning_C4701; --- > vtksys_ios::ostringstream fn_with_warning_C4701; 440,441c442,449 < fn_with_warning_C4701 << fileName << ends; < return fn_with_warning_C4701.str(); --- > fn_with_warning_C4701 << fileName; > > size_t len = fn_with_warning_C4701.str().length(); > char *buffer = new char[len + 1]; > strncpy(buffer, fn_with_warning_C4701.str().c_str(), len); > buffer[len] = '\0'; > > return buffer; Index: IO/vtkXMLPDataWriter.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPDataWriter.cxx,v retrieving revision 1.15 diff -r1.15 vtkXMLPDataWriter.cxx 20a21,22 > #include > 262c264 < ostrstream fn_with_warning_C4701; --- > vtksys_ios::ostringstream fn_with_warning_C4701; 269,270c271,278 < fn_with_warning_C4701 << ends; < return fn_with_warning_C4701.str(); --- > fn_with_warning_C4701; > > size_t len = fn_with_warning_C4701.str().length(); > char *buffer = new char[len + 1]; > strncpy(buffer, fn_with_warning_C4701.str().c_str(), len); > buffer[len] = '\0'; > > return buffer; Index: IO/vtkXMLPStructuredDataReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPStructuredDataReader.cxx,v retrieving revision 1.22 diff -r1.22 vtkXMLPStructuredDataReader.cxx 25a26,27 > #include > 433c435 < ostrstream e_with_warning_C4701; --- > vtksys_ios::ostringstream e_with_warning_C4701; 449,451c451,452 < e_with_warning_C4701 << "The UpdateExtent cannot be filled." << ends; < vtkErrorMacro(<< e_with_warning_C4701.str()); < e_with_warning_C4701.rdbuf()->freeze(0); --- > e_with_warning_C4701 << "The UpdateExtent cannot be filled."; > vtkErrorMacro(<< e_with_warning_C4701.str().c_str()); Index: IO/vtkXMLReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLReader.cxx,v retrieving revision 1.45 diff -r1.45 vtkXMLReader.cxx 31a32 > #include 687c688 < strstream str; --- > vtksys_ios::stringstream str; 689d689 < str << ends; 698c698 < strstream str; --- > vtksys_ios::stringstream str; 700d699 < str << ends; 878,881c877,879 < ostrstream ostr_with_warning_C4701; < ostr_with_warning_C4701 << "Array " << i << ends; < sel->AddArray( ostr_with_warning_C4701.str() ); < ostr_with_warning_C4701.rdbuf()->freeze(0); --- > vtksys_ios::ostringstream ostr_with_warning_C4701; > ostr_with_warning_C4701 << "Array " << i; > sel->AddArray( ostr_with_warning_C4701.str().c_str() ); Index: IO/vtkXMLUtilities.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkXMLUtilities.cxx,v retrieving revision 1.7 diff -r1.7 vtkXMLUtilities.cxx 20a21,22 > #include > 421c423 < strstream strstr; --- > vtksys_ios::stringstream strstr; 425c427 < strstr.rdbuf()->freeze(0); --- > 587,588c589,590 < ostrstream id; < id << buffer << tree->GetName() << ends; --- > vtksys_ios::ostringstream id; > id << buffer << tree->GetName(); 593c595 < factored->SetAttribute("Id", id.str()); --- > factored->SetAttribute("Id", id.str().c_str()); 607c609 < similar_trees[i]->SetAttribute("Id", id.str()); --- > similar_trees[i]->SetAttribute("Id", id.str().c_str()); 613,615c615 < tree->SetAttribute("Id", id.str()); < < id.rdbuf()->freeze(0); --- > tree->SetAttribute("Id", id.str().c_str()); Index: Rendering/vtkCocoaRenderWindow.mm =================================================================== RCS file: /cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindow.mm,v retrieving revision 1.46 diff -r1.46 vtkCocoaRenderWindow.mm 21a22,23 > #include > 199c201 < ostrstream strm; --- > vtksys_ios::ostringstream strm; 239d240 < strm << ends; 241,242c242,246 < this->Capabilities = new char[strlen(strm.str()) + 1]; < strcpy(this->Capabilities, strm.str()); --- > > size_t len = strm.str().length() + 1; > this->Capabilities = new char[len]; > strlcpy(this->Capabilities, strm.str().c_str(), len); > Index: Rendering/vtkInteractorEventRecorder.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Rendering/vtkInteractorEventRecorder.cxx,v retrieving revision 1.10 diff -r1.10 vtkInteractorEventRecorder.cxx 19a20,21 > #include > 152,153c154,155 < int len; < if ( this->InputString == NULL || (len = strlen(this->InputString) <= 0) ) --- > size_t len = strlen(this->InputString); > if ( this->InputString == NULL || (len <= 0) ) 158c160,161 < this->InputStream = new istrstream(this->InputString, len); --- > vtkstd::string inputStr(this->InputString, len); > this->InputStream = new vtksys_ios::istringstream(inputStr); Index: Rendering/vtkWin32OpenGLRenderWindow.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Rendering/vtkWin32OpenGLRenderWindow.cxx,v retrieving revision 1.147 diff -r1.147 vtkWin32OpenGLRenderWindow.cxx 30a31 > #include 399c400 < ostrstream strm; --- > vtksys_ios::ostringstream strm; 445d445 < strm << ends; 447c447,451 < this->Capabilities = strm.str(); --- > > size_t len = strm.str().length() + 1; > this->Capabilities = new char[len]; > lstrcpyn(this->Capabilities, strm.str().c_str(), len); > Index: Rendering/vtkXOpenGLRenderWindow.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,v retrieving revision 1.84 diff -r1.84 vtkXOpenGLRenderWindow.cxx 45a46,47 > #include > 1591c1593 < ostrstream strm; --- > vtksys_ios::ostringstream strm; 1616c1618 < strm << ends; --- > 1618c1620,1625 < this->Capabilities = strm.str(); --- > > size_t len = strm.str().length(); > this->Capabilities = new char[len + 1]; > strncpy(this->Capabilities, strm.str().c_str(), len); > this->Capabilities[len] = NULL; > Index: Rendering/Testing/Cxx/otherCoordinate.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Rendering/Testing/Cxx/otherCoordinate.cxx,v retrieving revision 1.11 diff -r1.11 otherCoordinate.cxx 24a25,26 > #include > 171c173 < ostrstream vtkmsg_with_warning_C4701; --- > vtksys_ios::ostringstream vtkmsg_with_warning_C4701; Index: Utilities/MaterialLibrary/ProcessShader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Utilities/MaterialLibrary/ProcessShader.cxx,v retrieving revision 1.3 diff -r1.3 ProcessShader.cxx 22a23 > #include 32,35c33 < ~Output() < { < this->Stream.rdbuf()->freeze(0); < } --- > ~Output(){} 38c36 < ostrstream Stream; --- > vtksys_ios::ostringstream Stream; 196,197c194,195 < ostrstream createstring; < ostrstream lenstr; --- > vtksys_ios::ostringstream createstring; > vtksys_ios::ostringstream lenstr; 211c209 < << lenstr.rdbuf() --- > << lenstr.str() 215c213 < << createstring.rdbuf() --- > << createstring.str() 230c228 < fprintf(fp, "%s", ot.Stream.str()); --- > fprintf(fp, "%s", ot.Stream.str().c_str()); Index: VolumeRendering/vtkVREncodeString.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/VolumeRendering/vtkVREncodeString.cxx,v retrieving revision 1.3 diff -r1.3 vtkVREncodeString.cxx 3a4 > #include 13,17c14,15 < ~Output() < { < this->Stream.rdbuf()->freeze(0); < } < ostrstream Stream; --- > ~Output(){} > vtksys_ios::ostringstream Stream; 85d82 < ot.Stream << ends; 92c89 < fprintf(fp, "%s", ot.Stream.str()); --- > fprintf(fp, "%s", ot.Stream.str().c_str()); Index: Widgets/vtkBiDimensionalRepresentation2D.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Widgets/vtkBiDimensionalRepresentation2D.cxx,v retrieving revision 1.21 diff -r1.21 vtkBiDimensionalRepresentation2D.cxx 34a35,36 > #include > 859c861 < ostrstream label; --- > vtksys_ios::ostringstream label; 869c871 < label << distStr1 << " x " << distStr2 << ends; --- > label << distStr1 << " x " << distStr2; 873c875 < label << distStr2 << " x " << distStr1 << ends; --- > label << distStr2 << " x " << distStr1; 875,876c877 < this->TextMapper->SetInput(label.str()); < label.rdbuf()->freeze(0); --- > this->TextMapper->SetInput(label.str().c_str()); Index: Wrapping/vtkWrapJava.c =================================================================== RCS file: /cvsroot/VTK/VTK/Wrapping/vtkWrapJava.c,v retrieving revision 1.58 diff -r1.58 vtkWrapJava.c 957a958 > fprintf(fp,"#include \n"); 1039c1040 < fprintf(fp," ostrstream vtkmsg_with_warning_C4701;\n"); --- > fprintf(fp," vtksys_ios::ostringstream vtkmsg_with_warning_C4701;\n"); 1042,1043c1043 < fprintf(fp," tmp = vtkJavaMakeJavaString(env,vtkmsg_with_warning_C4701.str());\n"); < fprintf(fp," delete vtkmsg_with_warning_C4701.str();\n"); --- > fprintf(fp," tmp = vtkJavaMakeJavaString(env,vtkmsg_with_warning_C4701.str().c_str());\n"); 1054c1054 < fprintf(fp," ostrstream vtkmsg_with_warning_C4701;\n"); --- > fprintf(fp," vtksys_ios::ostringstream vtkmsg_with_warning_C4701;\n"); 1057,1058c1057 < fprintf(fp," tmp = vtkJavaMakeJavaString(env,vtkmsg_with_warning_C4701.str());\n"); < fprintf(fp," delete vtkmsg_with_warning_C4701.str();\n"); --- > fprintf(fp," tmp = vtkJavaMakeJavaString(env,vtkmsg_with_warning_C4701.str().c_str());\n"); Index: Wrapping/vtkWrapPython.c =================================================================== RCS file: /cvsroot/VTK/VTK/Wrapping/vtkWrapPython.c,v retrieving revision 1.82 diff -r1.82 vtkWrapPython.c 1339a1340 > fprintf(fp,"#include \n"); 1426c1427 < fprintf(fp," ostrstream vtkmsg_with_warning_C4701;\n"); --- > fprintf(fp," vtksys_ios::ostringstream vtkmsg_with_warning_C4701;\n"); 1429,1430c1430 < fprintf(fp," PyObject *result = PyString_FromString(vtkmsg_with_warning_C4701.str());\n"); < fprintf(fp," delete vtkmsg_with_warning_C4701.str();\n"); --- > fprintf(fp," PyObject *result = PyString_FromString(vtkmsg_with_warning_C4701.str().c_str());\n"); Index: Wrapping/vtkWrapTcl.c =================================================================== RCS file: /cvsroot/VTK/VTK/Wrapping/vtkWrapTcl.c,v retrieving revision 1.50 diff -r1.50 vtkWrapTcl.c 761a762 > fprintf(fp,"#include \n"); 916c917 < fprintf(fp," ostrstream buf_with_warning_C4701;\n"); --- > fprintf(fp," vtksys_ios::ostringstream buf_with_warning_C4701;\n"); 919c920 < fprintf(fp," Tcl_SetResult(interp,buf_with_warning_C4701.str(),\n"); --- > fprintf(fp," Tcl_SetResult(interp,const_cast(buf_with_warning_C4701.str().c_str()),\n"); 921d921 < fprintf(fp," buf_with_warning_C4701.rdbuf()->freeze(0);\n"); 925c925 < fprintf(fp," ostrstream buf_with_warning_C4701;\n"); --- > fprintf(fp," vtksys_ios::ostringstream buf_with_warning_C4701;\n"); 928c928 < fprintf(fp," Tcl_SetResult(interp,buf_with_warning_C4701.str(),\n"); --- > fprintf(fp," Tcl_SetResult(interp,const_cast(buf_with_warning_C4701.str().c_str()),\n"); 930d929 < fprintf(fp," delete [] buf_with_warning_C4701.str();\n");