? .DS_Store ? Graphics/Testing/.DS_Store ? Wrapping/.DS_Store Index: Common/vtkGarbageCollector.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkGarbageCollector.cxx,v retrieving revision 1.30 diff -r1.30 vtkGarbageCollector.cxx 613c613 < ostrstream msg; --- > ostringstream msg; 618,620c618 < msg << ends; < vtkDebugMacro(<< msg.str()); < msg.rdbuf()->freeze(0); --- > vtkDebugMacro(<< msg.str().c_str()); 711c709 < ostrstream msg; --- > ostringstream msg; 723,725c721 < 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. 38a38 > # include // Include real ansi stringstreams. 55,57d54 < using std::ostrstream; < using std::istrstream; < using std::strstream; 60a58,60 > using vtksys_ios::ostringstream; > using vtksys_ios::istringstream; > using vtksys_ios::stringstream; Index: Common/vtkObjectBase.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkObjectBase.cxx,v retrieving revision 1.15 diff -r1.15 vtkObjectBase.cxx 180c180 < ostrstream revisions; --- > ostringstream revisions; 182,183c182 < revisions << ends; < const char* c = revisions.str(); --- > const char* c = revisions.str().c_str(); 225d223 < 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 103c103 < ostrstream vtkmsg_with_warning_C4701; --- > ostringstream vtkmsg_with_warning_C4701; 106,107c106 < 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 669c669 < ostrstream vtkmsg_with_warning_C4701; --- > 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 157c157 < ostrstream vtkmsg_with_warning_C4701; --- > 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 202c202 < ostrstream vtkmsg_with_warning_C4701; --- > 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 71c71 < ostrstream vtkmsg_with_warning_C4701; --- > 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 84c84 < ostrstream vtkmsg_with_warning_C4701; --- > 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 497c497 < ostrstream vtkmsg_with_warning_C4701; --- > 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 581c581 < ostrstream vtkmsg_with_warning_C4701; --- > 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 150c150 < ostrstream vtkmsg_with_warning_C4701; --- > 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 96c96 < ostrstream vtkmsg_with_warning_C4701; --- > 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 600c600 < ostrstream vtkmsg_with_warning_C4701; --- > 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 632c632 < ostrstream vtkmsg_with_warning_C4701; --- > 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 399c399 < ostrstream vtkmsg_with_warning_C4701; --- > 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; --- > 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 292c292,293 < istrstream lineStream(strPtr); --- > vtkstd::string str(strPtr, stringBuffer.size()); > 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 840c840 < ostrstream str_with_warning_C4701; --- > ostringstream str_with_warning_C4701; 858,860c858 < 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() ); 866c864 < ostrstream str_with_warning_C4701; --- > ostringstream str_with_warning_C4701; 884,886c882 < 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() ); 892c888 < ostrstream str_with_warning_C4701; --- > ostringstream str_with_warning_C4701; 911,913c907 < 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() ); 1096c1090 < ostrstream str_with_warning_C4701; --- > ostringstream str_with_warning_C4701; 1114,1116c1108 < 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() ); 1122c1114 < ostrstream str_with_warning_C4701; --- > ostringstream str_with_warning_C4701; 1140,1142c1132 < 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() ); 1148c1138 < ostrstream str_with_warning_C4701; --- > ostringstream str_with_warning_C4701; 1166,1168c1156 < 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 375c375 < this->IS = new istrstream(this->InputArray->GetPointer(0), --- > vtkstd::string str(this->InputArray->GetPointer(0), 377a378 > this->IS = new istringstream(str); 383c384,385 < this->IS = new istrstream(this->InputString, this->InputStringLength); --- > vtkstd::string str(this->InputString, this->InputStringLength); > this->IS = new istringstream(str); 2441,2442c2443,2444 < ostrstream str; < int cc = 0; --- > ostringstream str; > size_t cc = 0; 2444,2445c2446,2447 < int len = static_cast(strlen(name)); < int reslen = 0; --- > size_t len = strlen(name); > size_t reslen = 0; 2451c2453 < if ( cc <= len - 3 ) --- > if ( cc <= (len - 3) ) 2469,2471c2471 < 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 168,169c168,169 < fptr = new ostrstream(this->OutputString, < this->OutputStringAllocatedLength); --- > vtkstd::string str(this->OutputString, this->OutputStringAllocatedLength); > fptr = new ostringstream(str); 1260,1262c1260,1261 < char *tmp; < ostrstream *ostr = (ostrstream*)(fp); < this->OutputStringLength = ostr->pcount(); --- > ostringstream *ostr = (ostringstream*)(fp); > this->OutputStringLength = ostr->str().length(); 1269,1270c1268,1269 < tmp = ostr->str(); < if (tmp != this->OutputString) --- > const char *tmp = ostr->str().c_str(); > if (strcmp(this->OutputString, tmp) != 0) 1274d1272 < 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 2500,2501c2500 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 2643,2644c2642 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 2729,2730c2727 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 2846,2847c2843 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 2896,2897c2892 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 2954,2955c2949 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 3010,3011c3004 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 3064,3065c3057 < strstream pdatastream; < pdatastream << pdata.c_str() << ends; --- > stringstream pdatastream(pdata); 4016,4017c4008 < strstream infostream; < infostream << info.c_str() << ends; --- > stringstream infostream(info); 4038d4028 < strstream pdatastream; 4041c4031 < pdatastream << pdata.c_str() << ends; --- > 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 301c301 < ostrstream os; --- > ostringstream os; 342,343d341 < os << ends; < 345c343 < const char *str = os.str(); --- > const char *str = os.str().c_str(); 370,371d367 < 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 215c215 < strstream tempPath; --- > 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; --- > stringstream tokenizer(line); 766,767c765 < strstream conversion; < conversion << token; --- > stringstream conversion(token); 850,851c848,849 < strstream tokenizer; < tokenizer << temp; --- > stringstream tokenizer(temp); > 899c897 < strstream parser; --- > 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; --- > stringstream tokenizer; 1107c1104 < strstream tokenizer; --- > stringstream tokenizer; 1184c1181 < strstream ascTokenizer; --- > stringstream ascTokenizer; 1192c1189 < strstream lineTokenizer; --- > stringstream lineTokenizer; 1259,1260c1256,1257 < strstream tokenizer; < tokenizer << this->NumFaces << ends; --- > stringstream tokenizer; > tokenizer << this->NumFaces; 1382,1383c1379,1380 < strstream tokenizer; < tokenizer << this->NumFaces << ends; --- > stringstream tokenizer; > tokenizer << this->NumFaces; 1460,1461c1457,1458 < strstream path; < strstream timeStep; --- > stringstream path; > 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; --- > stringstream tokenizer; 1681,1684c1677,1679 < strstream varPath; < varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << < varName << ends; < vtkDebugMacro(<<"Get internal variable: "< 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; --- > stringstream tokenizer; 1957,1960c1950,1952 < strstream varPath; < varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << < varName << ends; < vtkDebugMacro(<<"Get boundary variable: "< 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; --- > stringstream tokenizer; 2329c2319 < strstream tokenizer; --- > stringstream tokenizer; 2413c2403 < strstream tokenizer; --- > stringstream tokenizer; 2579c2569 < strstream tokenizer; --- > stringstream tokenizer; 2731c2721 < strstream tokenizer; --- > stringstream tokenizer; 2922c2912 < strstream tokenizer; --- > stringstream tokenizer; Index: IO/vtkParticleReader.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/IO/vtkParticleReader.cxx,v retrieving revision 1.28 diff -r1.28 vtkParticleReader.cxx 96,97c96,97 < strstream is; < is << s.c_str() << ends;// no istringstream in VTK --- > 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 172c172 < ostrstream str; --- > ostringstream str; 200,202c200 < 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 110c110 < ostrstream str; --- > ostringstream str; 114,115c114 < this->SetAttribute(atts[i], str.str()); < str.rdbuf()->freeze(0); --- > this->SetAttribute(atts[i], str.str().c_str()); 568,569c567,568 < strstream vstr; < vstr << str << ends; --- > stringstream vstr; > vstr << str; 837c836 < strstream vstr; --- > stringstream vstr; 843,845c842,844 < 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 227c227 < ostrstream entry_with_warning_C4701; --- > 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; --- > 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; --- > 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 435c435 < ostrstream fn_with_warning_C4701; --- > ostringstream fn_with_warning_C4701; 440,441c440,447 < 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 262c262 < ostrstream fn_with_warning_C4701; --- > ostringstream fn_with_warning_C4701; 269,270c269,276 < 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 433c433 < ostrstream e_with_warning_C4701; --- > ostringstream e_with_warning_C4701; 449,451c449,450 < 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 687c687 < strstream str; --- > stringstream str; 689d688 < str << ends; 698c697 < strstream str; --- > stringstream str; 700d698 < str << ends; 878,881c876,878 < 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); --- > 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 421c421 < strstream strstr; --- > stringstream strstr; 425c425 < strstr.rdbuf()->freeze(0); --- > 587,588c587,588 < ostrstream id; < id << buffer << tree->GetName() << ends; --- > ostringstream id; > id << buffer << tree->GetName(); 593c593 < factored->SetAttribute("Id", id.str()); --- > factored->SetAttribute("Id", id.str().c_str()); 607c607 < similar_trees[i]->SetAttribute("Id", id.str()); --- > similar_trees[i]->SetAttribute("Id", id.str().c_str()); 613,615c613 < 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 199c199 < ostrstream strm; --- > ostringstream strm; 239d238 < strm << ends; 241,242c240,244 < 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 152,153c152,153 < int len; < if ( this->InputString == NULL || (len = strlen(this->InputString) <= 0) ) --- > size_t len = strlen(this->InputString); > if ( this->InputString == NULL || (len <= 0) ) 158c158,159 < this->InputStream = new istrstream(this->InputString, len); --- > vtkstd::string inputStr(this->InputString, len); > this->InputStream = new istringstream(inputStr); Index: Rendering/vtkWin32OpenGLRenderWindow.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Rendering/vtkWin32OpenGLRenderWindow.cxx,v retrieving revision 1.147 diff -r1.147 vtkWin32OpenGLRenderWindow.cxx 399c399 < ostrstream strm; --- > ostringstream strm; 445d444 < strm << ends; 447c446,450 < 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 1591c1591 < ostrstream strm; --- > ostringstream strm; 1616c1616 < strm << ends; --- > 1618c1618,1623 < 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 171c171 < ostrstream vtkmsg_with_warning_C4701; --- > 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 32,35c32 < ~Output() < { < this->Stream.rdbuf()->freeze(0); < } --- > ~Output(){} 38c35 < ostrstream Stream; --- > ostringstream Stream; 196,197c193,194 < ostrstream createstring; < ostrstream lenstr; --- > ostringstream createstring; > ostringstream lenstr; 211c208 < << lenstr.rdbuf() --- > << lenstr.str() 215c212 < << createstring.rdbuf() --- > << createstring.str() 230c227 < 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 13,17c13,14 < ~Output() < { < this->Stream.rdbuf()->freeze(0); < } < ostrstream Stream; --- > ~Output(){} > ostringstream Stream; 85d81 < ot.Stream << ends; 92c88 < 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 859c859 < ostrstream label; --- > ostringstream label; 869c869 < label << distStr1 << " x " << distStr2 << ends; --- > label << distStr1 << " x " << distStr2; 873c873 < label << distStr2 << " x " << distStr1 << ends; --- > label << distStr2 << " x " << distStr1; 875,876c875 < 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 1039c1039 < fprintf(fp," ostrstream vtkmsg_with_warning_C4701;\n"); --- > fprintf(fp," ostringstream vtkmsg_with_warning_C4701;\n"); 1042,1043c1042 < 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"); 1054c1053 < fprintf(fp," ostrstream vtkmsg_with_warning_C4701;\n"); --- > fprintf(fp," ostringstream vtkmsg_with_warning_C4701;\n"); 1057,1058c1056 < 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 1426c1426 < fprintf(fp," ostrstream vtkmsg_with_warning_C4701;\n"); --- > fprintf(fp," ostringstream vtkmsg_with_warning_C4701;\n"); 1429,1430c1429 < 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 916c916 < fprintf(fp," ostrstream buf_with_warning_C4701;\n"); --- > fprintf(fp," ostringstream buf_with_warning_C4701;\n"); 919c919 < 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"); 921d920 < fprintf(fp," buf_with_warning_C4701.rdbuf()->freeze(0);\n"); 925c924 < fprintf(fp," ostrstream buf_with_warning_C4701;\n"); --- > fprintf(fp," ostringstream buf_with_warning_C4701;\n"); 928c927 < 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"); 930d928 < fprintf(fp," delete [] buf_with_warning_C4701.str();\n");