For another project, please consult its home page to locate the current issue tracker.
| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0001953 | VTK | (No Category) | public | 2005-06-20 10:55 | 2008-02-28 12:51 | ||||
| Reporter | Sean McBride | ||||||||
| Assigned To | David Cole | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0001953: vtk uses deprecated 'strstream' STL class, causes warnings with gcc | ||||||||
| Description | Hello, I am using VTK from CVS (circa 2005-06-13) and when I include vtkCocoaGLView.h in my own projects I get a compilation warning: "This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the ++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header iostream.h>. To disable this warning use -Wno-deprecated." I am using gcc 4. The problem seems to be that vtkIOStream.h includes <strstream> which is apparently considered obsolete. Its rather annoying, simply because of the way my crappy IDE (XCode) works, it takes many many lines up in my error window. :) thanks. | ||||||||
| Tags | No tags attached. | ||||||||
| Project | |||||||||
| Type | |||||||||
| Attached Files | ? .DS_Store
? Testing
? Common/.DS_Store
? Examples/GUI/Win32/vtkMFC/vtkDLG/res/.DS_Store
? Examples/GUI/Win32/vtkMFC/vtkMDI/res/.DS_Store
? Examples/GUI/Win32/vtkMFC/vtkSDI/res/.DS_Store
? Rendering/.DS_Store
? Utilities/.DS_Store
? Utilities/Doxygen/.DS_Store
? Utilities/vtkfreetype/.DS_Store
? Utilities/vtkfreetype/src/.DS_Store
? Utilities/vtkfreetype/src/base/.DS_Store
? Utilities/vtkpng/.DS_Store
Index: Common/vtkGarbageCollector.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/vtkGarbageCollector.cxx,v
retrieving revision 1.30
diff -u -3 -r1.30 vtkGarbageCollector.cxx
--- Common/vtkGarbageCollector.cxx 25 Nov 2005 20:10:58 -0000 1.30
+++ Common/vtkGarbageCollector.cxx 26 Jul 2006 20:09:36 -0000
@@ -21,6 +21,7 @@
#include <vtkstd/queue>
#include <vtkstd/stack>
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
// Leave the hashing version off for now.
#define VTK_GARBAGE_COLLECTOR_HASH 0
@@ -610,14 +611,13 @@
if(this->Debug && vtkObject::GetGlobalWarningDisplay())
{
vtkObjectBase* current = this->Current->Object;
- ostrstream msg;
+ vtksys_ios::ostringstream msg;
msg << "Report: "
<< current->GetClassName() << "(" << current << ") "
<< (desc?desc:"")
<< " -> " << obj->GetClassName() << "(" << obj << ")";
msg << ends;
- vtkDebugMacro(<< msg.str());
- msg.rdbuf()->freeze(0);
+ vtkDebugMacro(<< msg.str().c_str());
}
// Forward call to the internal implementation.
@@ -708,7 +708,7 @@
{
if(this->Debug && vtkObject::GetGlobalWarningDisplay())
{
- ostrstream msg;
+ vtksys_ios::ostringstream msg;
msg << "Identified strongly connected component "
<< c->Identifier << " with net reference count "
<< c->NetCount << ":";
@@ -721,8 +721,7 @@
<< ((count == 1)? "reference" : "references");
}
msg << ends;
- vtkDebugMacro(<< msg.str());
- msg.rdbuf()->freeze(0);
+ vtkDebugMacro(<< msg.str().c_str());
}
}
#else
Index: Common/vtkObjectBase.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/vtkObjectBase.cxx,v
retrieving revision 1.14
diff -u -3 -r1.14 vtkObjectBase.cxx
--- Common/vtkObjectBase.cxx 17 May 2005 13:12:30 -0000 1.14
+++ Common/vtkObjectBase.cxx 26 Jul 2006 20:09:36 -0000
@@ -17,6 +17,8 @@
#include "vtkDebugLeaks.h"
#include "vtkGarbageCollector.h"
+#include <vtksys/ios/sstream>
+
#define vtkBaseDebugMacro(x)
class vtkObjectBaseToGarbageCollectorFriendship
@@ -177,10 +179,10 @@
void vtkObjectBase::PrintRevisions(ostream& os)
{
- ostrstream revisions;
+ vtksys_ios::ostringstream revisions;
this->CollectRevisions(revisions);
revisions << ends;
- const char* c = revisions.str();
+ const char* c = revisions.str().c_str();
while(*c)
{
const char* beginClass = 0;
@@ -218,7 +220,6 @@
++c;
}
}
- revisions.rdbuf()->freeze(0);
}
//----------------------------------------------------------------------------
Index: Common/vtkPythonUtil.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/vtkPythonUtil.cxx,v
retrieving revision 1.76
diff -u -3 -r1.76 vtkPythonUtil.cxx
--- Common/vtkPythonUtil.cxx 4 Aug 2005 16:19:14 -0000 1.76
+++ Common/vtkPythonUtil.cxx 26 Jul 2006 20:09:36 -0000
@@ -27,6 +27,7 @@
#include <vtkstd/map>
#include <vtkstd/string>
+#include <vtksys/ios/sstream>
#if defined ( _MSC_VER )
# define vtkConvertPtrToLong(x) ((long)(PtrToUlong(x)))
@@ -100,11 +101,10 @@
}
PyErr_Clear();
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
self->vtk_ptr->Print(vtkmsg_with_warning_C4701);
vtkmsg_with_warning_C4701.put('\0');
- 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());
return res;
}
Index: Common/Testing/Cxx/otherArrays.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherArrays.cxx,v
retrieving revision 1.24
diff -u -3 -r1.24 otherArrays.cxx
--- Common/Testing/Cxx/otherArrays.cxx 29 Jun 2005 14:07:30 -0000 1.24
+++ Common/Testing/Cxx/otherArrays.cxx 26 Jul 2006 20:09:36 -0000
@@ -26,6 +26,8 @@
#include "vtkDoubleArray.h"
#include "vtkIdTypeArray.h"
+#include <vtksys/ios/sstream>
+
#define SIZE 1000
template <class T, class A, class V>
@@ -666,7 +668,7 @@
int otherArrays(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
// return otherArraysTest(vtkmsg_with_warning_C4701);
return otherArraysTest(cerr);
Index: Common/Testing/Cxx/otherByteSwap.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherByteSwap.cxx,v
retrieving revision 1.10
diff -u -3 -r1.10 otherByteSwap.cxx
--- Common/Testing/Cxx/otherByteSwap.cxx 29 Jun 2005 14:07:30 -0000 1.10
+++ Common/Testing/Cxx/otherByteSwap.cxx 26 Jul 2006 20:09:36 -0000
@@ -20,6 +20,8 @@
#include "vtkByteSwap.h"
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
int TestByteSwap(ostream& strm)
{
// actual test
@@ -154,6 +156,6 @@
int otherByteSwap(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestByteSwap(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 -u -3 -r1.6 otherStringArray.cxx
--- Common/Testing/Cxx/otherStringArray.cxx 5 Jan 2006 18:29:03 -0000 1.6
+++ Common/Testing/Cxx/otherStringArray.cxx 26 Jul 2006 20:09:37 -0000
@@ -19,6 +19,8 @@
#include "vtkStringArray.h"
#include "vtkIdList.h"
+#include <vtksys/ios/sstream>
+
#define SIZE 1000
int doStringArrayTest(ostream& strm, int size)
@@ -199,7 +201,7 @@
int otherStringArray(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
// return otherArraysTest(vtkmsg_with_warning_C4701);
return otherStringArrayTest(cerr);
Index: Common/Testing/Cxx/otherTimerLog.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherTimerLog.cxx,v
retrieving revision 1.22
diff -u -3 -r1.22 otherTimerLog.cxx
--- Common/Testing/Cxx/otherTimerLog.cxx 29 Jun 2005 14:07:30 -0000 1.22
+++ Common/Testing/Cxx/otherTimerLog.cxx 26 Jul 2006 20:09:37 -0000
@@ -20,6 +20,8 @@
#include "vtkTimerLog.h"
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
// this is needed for the unlink call
#if defined(__CYGWIN__)
#include <sys/unistd.h>
@@ -68,7 +70,7 @@
int otherTimerLog(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
otherTimerLogTest(vtkmsg_with_warning_C4701);
return 0;
Index: Examples/MultiBlock/Cxx/MultiBlock.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Examples/MultiBlock/Cxx/MultiBlock.cxx,v
retrieving revision 1.3
diff -u -3 -r1.3 MultiBlock.cxx
--- Examples/MultiBlock/Cxx/MultiBlock.cxx 29 Mar 2005 20:35:15 -0000 1.3
+++ Examples/MultiBlock/Cxx/MultiBlock.cxx 26 Jul 2006 20:09:37 -0000
@@ -37,6 +37,8 @@
#include "vtkTestUtilities.h"
#include "vtkXMLStructuredGridReader.h"
+#include <vtksys/ios/sstream>
+
int main(int argc, char* argv[])
{
// Standard rendering classes
@@ -60,9 +62,9 @@
{
// Here we load the three separate files (each containing
// a structured grid dataset)
- ostrstream fname;
+ vtksys_ios::ostringstream fname;
fname << "Data/multicomb_" << i << ".vts" << ends;
- char* fstr = fname.str();
+ const char* fstr = fname.str().c_str();
char* cfname =
vtkTestUtilities::ExpandDataFileName(argc, argv, fstr);
reader->SetFileName(cfname);
Index: Filtering/Testing/Cxx/otherCellArray.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellArray.cxx,v
retrieving revision 1.1
diff -u -3 -r1.1 otherCellArray.cxx
--- Filtering/Testing/Cxx/otherCellArray.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherCellArray.cxx 26 Jul 2006 20:09:37 -0000
@@ -24,6 +24,8 @@
#include "vtkIdTypeArray.h"
#include "vtkQuad.h"
+#include <vtksys/ios/sstream>
+
int TestCellArray(ostream& strm)
{
// actual test
@@ -81,6 +83,6 @@
int otherCellArray(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestCellArray(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 -u -3 -r1.1 otherCellBoundaries.cxx
--- Filtering/Testing/Cxx/otherCellBoundaries.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherCellBoundaries.cxx 26 Jul 2006 20:09:37 -0000
@@ -36,6 +36,7 @@
#include "vtkPentagonalPrism.h"
#include "vtkHexagonalPrism.h"
+#include <vtksys/ios/sstream>
int TestOCB(ostream& strm)
{
@@ -494,6 +495,6 @@
int otherCellBoundaries(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestOCB(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 -u -3 -r1.1 otherCellPosition.cxx
--- Filtering/Testing/Cxx/otherCellPosition.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherCellPosition.cxx 26 Jul 2006 20:09:37 -0000
@@ -36,6 +36,8 @@
#include "vtkPentagonalPrism.h"
#include "vtkHexagonalPrism.h"
+#include <vtksys/ios/sstream>
+
int TestOCP(ostream& strm)
{
// actual test
@@ -578,6 +580,6 @@
int otherCellPosition(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestOCP(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 -u -3 -r1.15 otherColorTransferFunction.cxx
--- Filtering/Testing/Cxx/otherColorTransferFunction.cxx 29 Jun 2005 14:07:30 -0000 1.15
+++ Filtering/Testing/Cxx/otherColorTransferFunction.cxx 26 Jul 2006 20:09:37 -0000
@@ -20,6 +20,8 @@
#include "vtkColorTransferFunction.h"
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
int Test(ostream& strm)
{
int i, j, k;
@@ -147,6 +149,6 @@
int otherColorTransferFunction(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return Test(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 -u -3 -r1.1 otherEmptyCell.cxx
--- Filtering/Testing/Cxx/otherEmptyCell.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherEmptyCell.cxx 26 Jul 2006 20:09:37 -0000
@@ -24,6 +24,8 @@
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
void TestOEC(ostream& strm)
{
vtkEmptyCell *cell = vtkEmptyCell::New();
@@ -93,7 +95,7 @@
int otherEmptyCell(int , char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
TestOEC(vtkmsg_with_warning_C4701);
return 0;
Index: Filtering/Testing/Cxx/otherRectilinearGrid.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherRectilinearGrid.cxx,v
retrieving revision 1.1
diff -u -3 -r1.1 otherRectilinearGrid.cxx
--- Filtering/Testing/Cxx/otherRectilinearGrid.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherRectilinearGrid.cxx 26 Jul 2006 20:09:37 -0000
@@ -28,6 +28,8 @@
#include "vtkRectilinearGrid.h"
#include "vtkShortArray.h"
+#include <vtksys/ios/sstream>
+
int TestORG(ostream& strm)
{
int i, j, k;
@@ -597,6 +599,6 @@
int otherRectilinearGrid(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestORG(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 -u -3 -r1.1 otherStructuredGrid.cxx
--- Filtering/Testing/Cxx/otherStructuredGrid.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherStructuredGrid.cxx 26 Jul 2006 20:09:37 -0000
@@ -28,6 +28,8 @@
#include "vtkShortArray.h"
#include "vtkStructuredGrid.h"
+#include <vtksys/ios/sstream>
+
int TestOSG(ostream& strm)
{
int i, j, k;
@@ -629,6 +631,6 @@
int otherStructuredGrid(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestOSG(vtkmsg_with_warning_C4701);
}
Index: Filtering/Testing/Cxx/quadraticEvaluation.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/quadraticEvaluation.cxx,v
retrieving revision 1.2
diff -u -3 -r1.2 quadraticEvaluation.cxx
--- Filtering/Testing/Cxx/quadraticEvaluation.cxx 8 May 2006 18:23:14 -0000 1.2
+++ Filtering/Testing/Cxx/quadraticEvaluation.cxx 26 Jul 2006 20:09:37 -0000
@@ -28,6 +28,8 @@
#include "vtkQuadraticWedge.h"
#include "vtkQuadraticPyramid.h"
+#include <vtksys/ios/sstream>
+
void ComputeDataValues(vtkPoints *pts, double *edgeValues)
{
double x[3];
@@ -395,6 +397,6 @@
int quadraticEvaluation(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestQE(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 -u -3 -r1.12 otherCreation.cxx
--- GenericFiltering/Testing/Cxx/otherCreation.cxx 4 Apr 2006 11:22:52 -0000 1.12
+++ GenericFiltering/Testing/Cxx/otherCreation.cxx 26 Jul 2006 20:09:37 -0000
@@ -1680,7 +1680,7 @@
int otherCreation(int vtkNotUsed(argc),
char *vtkNotUsed(argv)[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
if (TestEmpty(cout))
{
Index: Hybrid/vtkFacetReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Hybrid/vtkFacetReader.cxx,v
retrieving revision 1.3
diff -u -3 -r1.3 vtkFacetReader.cxx
--- Hybrid/vtkFacetReader.cxx 22 Dec 2004 18:16:57 -0000 1.3
+++ Hybrid/vtkFacetReader.cxx 26 Jul 2006 20:09:37 -0000
@@ -33,12 +33,13 @@
#include <sys/stat.h>
#include <vtkstd/string>
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkFacetReader, "$Revision: 1.3 $");
vtkStandardNewMacro(vtkFacetReader);
//------------------------------------------------------------------------------
-// Due to a buggy stream library on the HP and another on Mac OSX, we
+// Due to a buggy stream library on the HP and another on Mac OS X, we
// need this very carefully written version of getline. Returns true
// if any data were read before the end-of-file was reached.
//
@@ -289,7 +290,7 @@
}
char* strPtr = &(*stringBuffer.begin());
strcpy(strPtr, line.c_str());
- istrstream lineStream(strPtr);
+ vtksys_ios::istringstream lineStream(strPtr);
vtkIdType kk;
int material = -1, relativePartNumber = -1;
for ( kk = 0; kk < num_points_per_cell; kk ++ )
Index: Hybrid/vtkRIBExporter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Hybrid/vtkRIBExporter.cxx,v
retrieving revision 1.63
diff -u -3 -r1.63 vtkRIBExporter.cxx
--- Hybrid/vtkRIBExporter.cxx 4 Jan 2005 20:56:39 -0000 1.63
+++ Hybrid/vtkRIBExporter.cxx 26 Jul 2006 20:09:37 -0000
@@ -40,6 +40,8 @@
#include "vtkTIFFWriter.h"
#include "vtkTexture.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkRIBExporter, "$Revision: 1.63 $");
vtkStandardNewMacro(vtkRIBExporter);
@@ -837,7 +839,7 @@
if ( pointData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < pointData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = pointData->GetArray(cc);
@@ -856,14 +858,13 @@
str_with_warning_C4701 << "] ";
}
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() );
}
if ( cellData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < cellData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = cellData->GetArray(cc);
@@ -882,14 +883,13 @@
str_with_warning_C4701 << "] ";
}
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() );
}
if ( fieldData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < fieldData->GetNumberOfArrays(); cc ++ )
{
@@ -909,8 +909,7 @@
str_with_warning_C4701 << "] ";
}
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() );
}
}
@@ -1093,7 +1092,7 @@
if ( pointData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < pointData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = pointData->GetArray(cc);
@@ -1112,14 +1111,13 @@
str_with_warning_C4701 << "] ";
}
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() );
}
if ( cellData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < cellData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = cellData->GetArray(cc);
@@ -1138,14 +1136,13 @@
str_with_warning_C4701 << "] ";
}
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() );
}
if ( fieldData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < fieldData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = fieldData->GetArray(cc);
@@ -1164,8 +1161,7 @@
str_with_warning_C4701 << "] ";
}
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() );
}
}
fprintf (this->FilePtr, "\n");
Index: IO/vtkDataReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkDataReader.cxx,v
retrieving revision 1.135
diff -u -3 -r1.135 vtkDataReader.cxx
--- IO/vtkDataReader.cxx 8 May 2006 18:37:11 -0000 1.135
+++ IO/vtkDataReader.cxx 26 Jul 2006 20:09:37 -0000
@@ -41,6 +41,7 @@
#include <ctype.h>
#include <sys/stat.h>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkDataReader, "$Revision: 1.135 $");
vtkStandardNewMacro(vtkDataReader);
@@ -364,15 +365,17 @@
if (this->InputArray)
{
vtkDebugMacro(<< "Reading from InputArray");
- this->IS = new istrstream(this->InputArray->GetPointer(0),
- this->InputArray->GetNumberOfTuples()*
- this->InputArray->GetNumberOfComponents());
+ vtkstd::string tempStr(this->InputArray->GetPointer(0),
+ this->InputArray->GetNumberOfTuples()*
+ this->InputArray->GetNumberOfComponents());
+ this->IS = new vtksys_ios::istringstream(tempStr);
return 1;
}
else if (this->InputString)
{
vtkDebugMacro(<< "Reading from InputString");
- this->IS = new istrstream(this->InputString, this->InputStringLength);
+ vtkstd::string tempStr(this->InputString, this->InputStringLength);
+ this->IS = new vtksys_ios::istringstream(tempStr);
return 1;
}
}
@@ -2327,7 +2330,7 @@
return;
}
//strcpy(resname, name);
- ostrstream str;
+ vtksys_ios::ostringstream str;
int cc = 0;
unsigned int ch;
int len = static_cast<int>(strlen(name));
@@ -2353,6 +2356,5 @@
cc ++;
}
str << ends;
- strcpy(resname, str.str());
- str.rdbuf()->freeze(0);
+ strcpy(resname, str.str().c_str());
}
Index: IO/vtkDataWriter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkDataWriter.cxx,v
retrieving revision 1.111
diff -u -3 -r1.111 vtkDataWriter.cxx
--- IO/vtkDataWriter.cxx 9 May 2006 14:30:13 -0000 1.111
+++ IO/vtkDataWriter.cxx 26 Jul 2006 20:09:37 -0000
@@ -36,6 +36,8 @@
#include "vtkUnsignedLongArray.h"
#include "vtkUnsignedShortArray.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkDataWriter, "$Revision: 1.111 $");
vtkStandardNewMacro(vtkDataWriter);
@@ -163,9 +165,9 @@
this->OutputStringAllocatedLength = (int) (500
+ 1000 * input->GetActualMemorySize());
this->OutputString = new char[this->OutputStringAllocatedLength];
-
- fptr = new ostrstream(this->OutputString,
+ vtkstd::string tmpStr(this->OutputString,
this->OutputStringAllocatedLength);
+ fptr = new vtksys_ios::ostringstream(tmpStr);
}
else
{
@@ -1152,15 +1154,17 @@
if (this->WriteToOutputString)
{
char *tmp;
- ostrstream *ostr = (ostrstream*)(fp);
- this->OutputStringLength = ostr->pcount();
+ vtksys_ios::ostringstream *ostr = (vtksys_ios::ostringstream*)(fp);
+
+ // DANGER!!!!!!! Mathieu, please fix this, thanks :)
+ this->OutputStringLength = 666;//ostr->pcount();
if (this->OutputStringLength == this->OutputStringAllocatedLength)
{
vtkErrorMacro("OutputString was not long enough.");
}
// Sanity check.
- tmp = ostr->str();
+ tmp = const_cast<char*>(ostr->str().c_str());
if (tmp != this->OutputString)
{
vtkErrorMacro("String mismatch");
Index: IO/vtkParticleReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkParticleReader.cxx,v
retrieving revision 1.28
diff -u -3 -r1.28 vtkParticleReader.cxx
--- IO/vtkParticleReader.cxx 24 May 2005 01:06:42 -0000 1.28
+++ IO/vtkParticleReader.cxx 26 Jul 2006 20:09:37 -0000
@@ -31,6 +31,7 @@
#include <vtkstd/algorithm>
#include <vtkstd/vector>
#include <vtkstd/string>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkParticleReader, "$Revision: 1.28 $");
vtkStandardNewMacro(vtkParticleReader);
@@ -93,7 +94,7 @@
vtkstd::replace(s.begin(),s.end(),',','\t');
// We have data.
- strstream is;
+ vtksys_ios::stringstream is;
is << s.c_str() << ends;// no istringstream in VTK
is >> val[0] >> val[1] >> val[2] >> val[3];
Index: IO/vtkWriter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkWriter.cxx,v
retrieving revision 1.43
diff -u -3 -r1.43 vtkWriter.cxx
--- IO/vtkWriter.cxx 19 Jan 2005 18:00:09 -0000 1.43
+++ IO/vtkWriter.cxx 26 Jul 2006 20:09:37 -0000
@@ -21,6 +21,8 @@
#include "vtkInformation.h"
#include "vtkInformationVector.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkWriter, "$Revision: 1.43 $");
// Construct with no start and end write methods or arguments.
@@ -169,7 +171,7 @@
return;
}
int cc = 0;
- ostrstream str;
+ vtksys_ios::ostringstream str;
char buffer[10];
@@ -190,6 +192,5 @@
cc++;
}
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 -u -3 -r1.26 vtkXMLDataElement.cxx
--- IO/vtkXMLDataElement.cxx 5 Jan 2006 18:29:04 -0000 1.26
+++ IO/vtkXMLDataElement.cxx 26 Jul 2006 20:09:37 -0000
@@ -19,6 +19,7 @@
#include "vtkXMLUtilities.h"
#include <ctype.h>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkXMLDataElement, "$Revision: 1.26 $");
vtkStandardNewMacro(vtkXMLDataElement);
@@ -107,12 +108,11 @@
}
else
{
- ostrstream str;
+ vtksys_ios::ostringstream str;
vtkXMLUtilities::EncodeString(
atts[i+1], VTK_ENCODING_UTF_8, str, this->GetAttributeEncoding(), 0);
str << ends;
- this->SetAttribute(atts[i], str.str());
- str.rdbuf()->freeze(0);
+ this->SetAttribute(atts[i], str.str().c_str());
}
}
}
@@ -565,7 +565,7 @@
int vtkXMLDataElementVectorAttributeParse(const char* str, int length, T* data)
{
if(!str || !length || !data) { return 0; }
- strstream vstr;
+ vtksys_ios::stringstream vstr;
vstr << str << ends;
int i;
for(i=0;i < length;++i)
@@ -834,15 +834,14 @@
{
return;
}
- strstream vstr;
+ vtksys_ios::stringstream vstr;
vstr << data[0];
for(int i = 1; i < length; ++i)
{
vstr << ' ' << data[i];
}
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.2
diff -u -3 -r1.2 vtkXMLMultiGroupDataWriter.cxx
--- IO/vtkXMLMultiGroupDataWriter.cxx 30 Sep 2005 14:22:29 -0000 1.2
+++ IO/vtkXMLMultiGroupDataWriter.cxx 26 Jul 2006 20:09:38 -0000
@@ -48,6 +48,7 @@
#include <vtkstd/string>
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXMLMultiGroupDataWriter);
@@ -224,13 +225,13 @@
unsigned int numLevels = hdBoxInput->GetNumberOfLevels();
for (unsigned int levelId=0; levelId<numLevels-1; levelId++)
{
- ostrstream entry_with_warning_C4701;
+ vtksys_ios::ostringstream entry_with_warning_C4701;
entry_with_warning_C4701
<< "<RefinementRatio level=\"" << levelId << "\""
<< " refinement=\"" << hdBoxInput->GetRefinementRatio(levelId) << "\""
<< "/>" << ends;
- this->AppendEntry(entry_with_warning_C4701.str());
- delete[] entry_with_warning_C4701.str();
+ this->AppendEntry(entry_with_warning_C4701.str().c_str());
+ delete[] entry_with_warning_C4701.str().c_str();
}
}
@@ -252,7 +253,7 @@
// Set the file name.
vtkstd::string fname = this->Internal->CreatePieceFileName(i);
// Create the entry for the collection file.
- ostrstream entry_with_warning_C4701;
+ vtksys_ios::ostringstream entry_with_warning_C4701;
entry_with_warning_C4701
<< "<DataSet group=\"" << groupId << "\" dataset=\"" << dataSetId << "\"";
if (hdBoxInput)
@@ -270,8 +271,8 @@
}
entry_with_warning_C4701
<< " file=\"" << fname.c_str() << "\"/>" << ends;
- this->AppendEntry(entry_with_warning_C4701.str());
- delete[] entry_with_warning_C4701.str();
+ this->AppendEntry(entry_with_warning_C4701.str().c_str());
+ delete[] entry_with_warning_C4701.str().c_str();
vtkDataSet* ds =
vtkDataSet::SafeDownCast(hdInput->GetDataSet(groupId, dataSetId));
@@ -676,13 +677,12 @@
vtkstd::string vtkXMLMultiGroupDataWriterInternals::CreatePieceFileName(int index)
{
vtkstd::string fname;
- ostrstream fn_with_warning_C4701;
+ vtksys_ios::ostringstream fn_with_warning_C4701;
fn_with_warning_C4701
<< this->FilePrefix.c_str() << "/"
<< this->FilePrefix.c_str() << "_" << index << "."
<< this->Writers[index]->GetDefaultFileExtension() << ends;
- fname = fn_with_warning_C4701.str();
- fn_with_warning_C4701.rdbuf()->freeze(0);
+ fname = fn_with_warning_C4701.str().c_str();
return fname;
}
Index: IO/vtkXMLPDataReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPDataReader.cxx,v
retrieving revision 1.18
diff -u -3 -r1.18 vtkXMLPDataReader.cxx
--- IO/vtkXMLPDataReader.cxx 5 Jan 2006 18:29:04 -0000 1.18
+++ IO/vtkXMLPDataReader.cxx 26 Jul 2006 20:09:38 -0000
@@ -26,6 +26,8 @@
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkXMLPDataReader, "$Revision: 1.18 $");
//----------------------------------------------------------------------------
@@ -432,13 +434,13 @@
//----------------------------------------------------------------------------
char* vtkXMLPDataReader::CreatePieceFileName(const char* fileName)
{
- ostrstream fn_with_warning_C4701;
+ vtksys_ios::ostringstream fn_with_warning_C4701;
if(this->PathName)
{
fn_with_warning_C4701 << this->PathName;
}
fn_with_warning_C4701 << fileName << ends;
- return fn_with_warning_C4701.str();
+ return const_cast<char*>(fn_with_warning_C4701.str().c_str());
}
//----------------------------------------------------------------------------
Index: IO/vtkXMLPDataWriter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPDataWriter.cxx,v
retrieving revision 1.15
diff -u -3 -r1.15 vtkXMLPDataWriter.cxx
--- IO/vtkXMLPDataWriter.cxx 26 May 2005 17:26:41 -0000 1.15
+++ IO/vtkXMLPDataWriter.cxx 26 Jul 2006 20:09:38 -0000
@@ -18,6 +18,8 @@
#include "vtkDataSet.h"
#include "vtkErrorCode.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkXMLPDataWriter, "$Revision: 1.15 $");
//----------------------------------------------------------------------------
@@ -259,7 +261,7 @@
//----------------------------------------------------------------------------
char* vtkXMLPDataWriter::CreatePieceFileName(int index, const char* path)
{
- ostrstream fn_with_warning_C4701;
+ vtksys_ios::ostringstream fn_with_warning_C4701;
if(path) { fn_with_warning_C4701 << path; }
fn_with_warning_C4701 << this->FileNameBase << "_" << index;
if(this->PieceFileNameExtension)
@@ -267,7 +269,7 @@
//if(this->FileNameExtension)
//{ fn_with_warning_C4701 << this->FileNameExtension; }
fn_with_warning_C4701 << ends;
- return fn_with_warning_C4701.str();
+ return const_cast<char*>(fn_with_warning_C4701.str().c_str());
}
//----------------------------------------------------------------------------
Index: IO/vtkXMLPStructuredDataReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPStructuredDataReader.cxx,v
retrieving revision 1.22
diff -u -3 -r1.22 vtkXMLPStructuredDataReader.cxx
--- IO/vtkXMLPStructuredDataReader.cxx 3 Aug 2005 21:57:50 -0000 1.22
+++ IO/vtkXMLPStructuredDataReader.cxx 26 Jul 2006 20:09:38 -0000
@@ -23,6 +23,8 @@
#include "vtkXMLDataElement.h"
#include "vtkXMLStructuredDataReader.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkXMLPStructuredDataReader, "$Revision: 1.22 $");
//----------------------------------------------------------------------------
@@ -430,7 +432,7 @@
if(!this->ExtentSplitter->ComputeSubExtents())
{
// A portion of the extent is not available.
- ostrstream e_with_warning_C4701;
+ vtksys_ios::ostringstream e_with_warning_C4701;
e_with_warning_C4701
<< "No available piece provides data for the following extents:\n";
for(i=0; i < this->ExtentSplitter->GetNumberOfSubExtents(); ++i)
@@ -447,8 +449,7 @@
}
}
e_with_warning_C4701 << "The UpdateExtent cannot be filled." << ends;
- vtkErrorMacro(<< e_with_warning_C4701.str());
- e_with_warning_C4701.rdbuf()->freeze(0);
+ vtkErrorMacro(<< e_with_warning_C4701.str().c_str());
return 0;
}
Index: IO/vtkXMLReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLReader.cxx,v
retrieving revision 1.42
diff -u -3 -r1.42 vtkXMLReader.cxx
--- IO/vtkXMLReader.cxx 5 Jan 2006 18:29:04 -0000 1.42
+++ IO/vtkXMLReader.cxx 26 Jul 2006 20:09:38 -0000
@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <assert.h>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkXMLReader, "$Revision: 1.42 $");
@@ -677,7 +678,7 @@
if(s > begin)
{
- strstream str;
+ vtksys_ios::stringstream str;
str.write(begin, s-begin);
str << ends;
str >> major;
@@ -688,7 +689,7 @@
}
if(++s < end)
{
- strstream str;
+ vtksys_ios::stringstream str;
str.write(s, end-s);
str << ends;
str >> minor;
@@ -868,10 +869,9 @@
}
else
{
- ostrstream ostr_with_warning_C4701;
+ vtksys_ios::ostringstream 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);
+ 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 -u -3 -r1.7 vtkXMLUtilities.cxx
--- IO/vtkXMLUtilities.cxx 22 Nov 2005 21:03:42 -0000 1.7
+++ IO/vtkXMLUtilities.cxx 26 Jul 2006 20:09:38 -0000
@@ -25,6 +25,7 @@
#endif
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
typedef vtkstd::vector<vtkXMLDataElement*> vtkXMLUtilitiesDataElementContainer;
@@ -418,11 +419,10 @@
return 0;
}
- strstream strstr;
+ vtksys_ios::stringstream strstr;
strstr << str;
vtkXMLDataElement *res =
vtkXMLUtilities::ReadElementFromStream(strstr, encoding);
- strstr.rdbuf()->freeze(0);
return res;
}
@@ -584,13 +584,13 @@
char buffer[5];
sprintf(buffer, "%02d_", pool->GetNumberOfNestedElements());
- ostrstream id;
+ vtksys_ios::ostringstream id;
id << buffer << tree->GetName() << ends;
vtkXMLDataElement *factored = vtkXMLDataElement::New();
factored->SetName(VTK_XML_UTILITIES_FACTORED_NAME);
factored->SetAttributeEncoding(pool->GetAttributeEncoding());
- factored->SetAttribute("Id", id.str());
+ factored->SetAttribute("Id", id.str().c_str());
pool->AddNestedElement(factored);
factored->Delete();
@@ -604,16 +604,14 @@
similar_trees[i]->RemoveAllAttributes();
similar_trees[i]->RemoveAllNestedElements();
similar_trees[i]->SetName(VTK_XML_UTILITIES_FACTORED_REF_NAME);
- similar_trees[i]->SetAttribute("Id", id.str());
+ similar_trees[i]->SetAttribute("Id", id.str().c_str());
}
tree->RemoveAllAttributes();
tree->RemoveAllNestedElements();
tree->SetName(VTK_XML_UTILITIES_FACTORED_REF_NAME);
- tree->SetAttribute("Id", id.str());
+ tree->SetAttribute("Id", id.str().c_str());
- id.rdbuf()->freeze(0);
-
delete [] similar_trees;
return 1;
Index: Rendering/vtkCocoaRenderWindow.mm
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindow.mm,v
retrieving revision 1.34
diff -u -3 -r1.34 vtkCocoaRenderWindow.mm
--- Rendering/vtkCocoaRenderWindow.mm 25 Jul 2006 23:38:33 -0000 1.34
+++ Rendering/vtkCocoaRenderWindow.mm 26 Jul 2006 20:09:38 -0000
@@ -20,6 +20,8 @@
#import "vtkRendererCollection.h"
#import "vtkCocoaGLView.h"
+#include <vtksys/ios/sstream>
+
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040
#endif
@@ -204,7 +206,7 @@
const char* glVersion = (const char*) glGetString(GL_VERSION);
const char* glExtensions = (const char*) glGetString(GL_EXTENSIONS);
- ostrstream strm;
+ vtksys_ios::ostringstream strm;
strm << "OpenGL vendor string: " << glVendor
<< "\nOpenGL renderer string: " << glRenderer
<< "\nOpenGL version string: " << glVersion
@@ -246,8 +248,8 @@
strm << ends;
delete[] this->Capabilities;
- this->Capabilities = new char[strlen(strm.str()) + 1];
- strcpy(this->Capabilities, strm.str());
+ this->Capabilities = new char[strlen(strm.str().c_str()) + 1];
+ strcpy(this->Capabilities, strm.str().c_str());
return this->Capabilities;
}
Index: Rendering/vtkInteractorEventRecorder.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkInteractorEventRecorder.cxx,v
retrieving revision 1.10
diff -u -3 -r1.10 vtkInteractorEventRecorder.cxx
--- Rendering/vtkInteractorEventRecorder.cxx 30 Dec 2005 15:53:36 -0000 1.10
+++ Rendering/vtkInteractorEventRecorder.cxx 26 Jul 2006 20:09:38 -0000
@@ -17,6 +17,9 @@
#include "vtkObjectFactory.h"
#include "vtkRenderWindowInteractor.h"
+#include <vtksys/stl/string>
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkInteractorEventRecorder, "$Revision: 1.10 $");
vtkStandardNewMacro(vtkInteractorEventRecorder);
@@ -155,7 +158,8 @@
vtkErrorMacro(<< "No input string specified");
return;
}
- this->InputStream = new istrstream(this->InputString, len);
+ vtkstd::string tempStr(this->InputString, len);
+ this->InputStream = new vtksys_ios::istringstream(tempStr);
if (this->InputStream->fail())
{
vtkErrorMacro(<< "Unable to read from string");
Index: Rendering/vtkWin32OpenGLRenderWindow.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkWin32OpenGLRenderWindow.cxx,v
retrieving revision 1.133
diff -u -3 -r1.133 vtkWin32OpenGLRenderWindow.cxx
--- Rendering/vtkWin32OpenGLRenderWindow.cxx 31 Mar 2006 21:05:36 -0000 1.133
+++ Rendering/vtkWin32OpenGLRenderWindow.cxx 26 Jul 2006 20:09:38 -0000
@@ -28,6 +28,7 @@
#include "vtkWin32RenderWindowInteractor.h"
#include <math.h>
+#include <vtksys/ios/sstream>
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
@@ -393,7 +394,7 @@
const char *glVersion = (const char *) glGetString(GL_VERSION);
const char *glExtensions = (const char *) glGetString(GL_EXTENSIONS);
- ostrstream strm;
+ vtksys_ios::ostringstream strm;
strm << "OpenGL vendor string: " << glVendor << endl;
strm << "OpenGL renderer string: " << glRenderer << endl;
strm << "OpenGL version string: " << glVersion << endl;
@@ -441,7 +442,7 @@
strm << ends;
delete[] this->Capabilities;
- this->Capabilities = strm.str();
+ this->Capabilities = strm.str().c_str();
return this->Capabilities;
}
Index: Rendering/vtkXOpenGLRenderWindow.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,v
retrieving revision 1.73
diff -u -3 -r1.73 vtkXOpenGLRenderWindow.cxx
--- Rendering/vtkXOpenGLRenderWindow.cxx 8 Jul 2006 16:34:16 -0000 1.73
+++ Rendering/vtkXOpenGLRenderWindow.cxx 26 Jul 2006 20:09:38 -0000
@@ -45,6 +45,8 @@
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
+#include <vtksys/ios/sstream>
+
class vtkXOpenGLRenderWindow;
class vtkRenderWindow;
class vtkXOpenGLRenderWindowInternal
@@ -1543,7 +1545,7 @@
const char *glVersion = (const char *) glGetString(GL_VERSION);
const char *glExtensions = (const char *) glGetString(GL_EXTENSIONS);
- ostrstream strm;
+ vtksys_ios::ostringstream strm;
strm << "server glx vendor string: " << serverVendor << endl;
strm << "server glx version string: " << serverVersion << endl;
strm << "server glx extensions: " << serverExtensions << endl;
@@ -1570,7 +1572,7 @@
}
strm << ends;
delete[] this->Capabilities;
- this->Capabilities = strm.str();
+ this->Capabilities = strm.str().c_str();
return this->Capabilities;
}
Index: Rendering/Testing/Cxx/otherCoordinate.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/Testing/Cxx/otherCoordinate.cxx,v
retrieving revision 1.11
diff -u -3 -r1.11 otherCoordinate.cxx
--- Rendering/Testing/Cxx/otherCoordinate.cxx 29 Jun 2005 14:07:33 -0000 1.11
+++ Rendering/Testing/Cxx/otherCoordinate.cxx 26 Jul 2006 20:09:38 -0000
@@ -24,6 +24,8 @@
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
void ToAll (ostream& strm, vtkCoordinate *c1, vtkViewport *ren1,
double *from)
{
@@ -168,7 +170,7 @@
int otherCoordinate(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return Test(vtkmsg_with_warning_C4701);
}
Index: Utilities/MaterialLibrary/ProcessShader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Utilities/MaterialLibrary/ProcessShader.cxx,v
retrieving revision 1.3
diff -u -3 -r1.3 ProcessShader.cxx
--- Utilities/MaterialLibrary/ProcessShader.cxx 5 Dec 2005 21:26:13 -0000 1.3
+++ Utilities/MaterialLibrary/ProcessShader.cxx 26 Jul 2006 20:09:38 -0000
@@ -20,6 +20,7 @@
#include <vtksys/SystemTools.hxx>
#include <vtksys/RegularExpression.hxx>
#include <vtksys/ios/fstream>
+#include <vtksys/ios/sstream>
class Output
{
@@ -31,11 +32,10 @@
}
~Output()
{
- this->Stream.rdbuf()->freeze(0);
}
Output(const Output&){}
void operator=(const Output&){}
- ostrstream Stream;
+ vtksys_ios::ostringstream Stream;
int MaxLen;
long CurrentPosition;
@@ -193,8 +193,8 @@
return 1;
}
int kk;
- ostrstream createstring;
- ostrstream lenstr;
+ vtksys_ios::ostringstream createstring;
+ vtksys_ios::ostringstream lenstr;
for ( kk = 0; kk < num; kk ++ )
{
lenstr << endl
@@ -227,7 +227,7 @@
cout << "Cannot open output file: " << output.c_str() << endl;
return 1;
}
- fprintf(fp, "%s", ot.Stream.str());
+ fprintf(fp, "%s", ot.Stream.str().c_str());
fclose(fp);
return 0;
}
Index: VolumeRendering/vtkVREncodeString.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/VolumeRendering/vtkVREncodeString.cxx,v
retrieving revision 1.3
diff -u -3 -r1.3 vtkVREncodeString.cxx
--- VolumeRendering/vtkVREncodeString.cxx 29 Aug 2005 21:36:54 -0000 1.3
+++ VolumeRendering/vtkVREncodeString.cxx 26 Jul 2006 20:09:38 -0000
@@ -1,6 +1,7 @@
#include "vtkObject.h"
#include <vtkstd/string>
+#include <vtksys/ios/sstream>
class Output
{
@@ -12,9 +13,8 @@
void operator=(const Output&);
~Output()
{
- this->Stream.rdbuf()->freeze(0);
}
- ostrstream Stream;
+ vtksys_ios::ostringstream Stream;
int ProcessFile(const char* file, const char* title)
{
@@ -89,7 +89,7 @@
cout << "Cannot open output file: " << output.c_str() << endl;
return 1;
}
- fprintf(fp, "%s", ot.Stream.str());
+ fprintf(fp, "%s", ot.Stream.str().c_str());
fclose(fp);
return 0;
}
? mathieu.patch
? Utilities/vtkfreetype-old
Index: Common/vtkGarbageCollector.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/vtkGarbageCollector.cxx,v
retrieving revision 1.30
diff -u -3 -p -r1.30 vtkGarbageCollector.cxx
--- Common/vtkGarbageCollector.cxx 25 Nov 2005 20:10:58 -0000 1.30
+++ Common/vtkGarbageCollector.cxx 4 Sep 2006 00:48:46 -0000
@@ -21,6 +21,7 @@
#include <vtkstd/queue>
#include <vtkstd/stack>
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
// Leave the hashing version off for now.
#define VTK_GARBAGE_COLLECTOR_HASH 0
@@ -610,14 +611,13 @@ void vtkGarbageCollectorImpl::Report(vtk
if(this->Debug && vtkObject::GetGlobalWarningDisplay())
{
vtkObjectBase* current = this->Current->Object;
- ostrstream msg;
+ vtksys_ios::ostringstream msg;
msg << "Report: "
<< current->GetClassName() << "(" << current << ") "
<< (desc?desc:"")
<< " -> " << obj->GetClassName() << "(" << obj << ")";
msg << ends;
- vtkDebugMacro(<< msg.str());
- msg.rdbuf()->freeze(0);
+ vtkDebugMacro(<< msg.str().c_str());
}
// Forward call to the internal implementation.
@@ -708,7 +708,7 @@ void vtkGarbageCollectorImpl::PrintCompo
{
if(this->Debug && vtkObject::GetGlobalWarningDisplay())
{
- ostrstream msg;
+ vtksys_ios::ostringstream msg;
msg << "Identified strongly connected component "
<< c->Identifier << " with net reference count "
<< c->NetCount << ":";
@@ -721,8 +721,7 @@ void vtkGarbageCollectorImpl::PrintCompo
<< ((count == 1)? "reference" : "references");
}
msg << ends;
- vtkDebugMacro(<< msg.str());
- msg.rdbuf()->freeze(0);
+ vtkDebugMacro(<< msg.str().c_str());
}
}
#else
Index: Common/vtkObjectBase.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/vtkObjectBase.cxx,v
retrieving revision 1.14
diff -u -3 -p -r1.14 vtkObjectBase.cxx
--- Common/vtkObjectBase.cxx 17 May 2005 13:12:30 -0000 1.14
+++ Common/vtkObjectBase.cxx 4 Sep 2006 00:48:47 -0000
@@ -17,6 +17,8 @@
#include "vtkDebugLeaks.h"
#include "vtkGarbageCollector.h"
+#include <vtksys/ios/sstream>
+
#define vtkBaseDebugMacro(x)
class vtkObjectBaseToGarbageCollectorFriendship
@@ -177,10 +179,10 @@ void vtkObjectBase::CollectRevisions(ost
void vtkObjectBase::PrintRevisions(ostream& os)
{
- ostrstream revisions;
+ vtksys_ios::ostringstream revisions;
this->CollectRevisions(revisions);
revisions << ends;
- const char* c = revisions.str();
+ const char* c = revisions.str().c_str();
while(*c)
{
const char* beginClass = 0;
@@ -218,7 +220,6 @@ void vtkObjectBase::PrintRevisions(ostre
++c;
}
}
- revisions.rdbuf()->freeze(0);
}
//----------------------------------------------------------------------------
Index: Common/vtkPythonUtil.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/vtkPythonUtil.cxx,v
retrieving revision 1.76
diff -u -3 -p -r1.76 vtkPythonUtil.cxx
--- Common/vtkPythonUtil.cxx 4 Aug 2005 16:19:14 -0000 1.76
+++ Common/vtkPythonUtil.cxx 4 Sep 2006 00:48:47 -0000
@@ -27,6 +27,7 @@
#include <vtkstd/map>
#include <vtkstd/string>
+#include <vtksys/ios/sstream>
#if defined ( _MSC_VER )
# define vtkConvertPtrToLong(x) ((long)(PtrToUlong(x)))
@@ -100,11 +101,10 @@ static PyObject *PyVTKObject_PyString(Py
}
PyErr_Clear();
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
self->vtk_ptr->Print(vtkmsg_with_warning_C4701);
vtkmsg_with_warning_C4701.put('\0');
- 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());
return res;
}
Index: Common/Testing/Cxx/otherArrays.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherArrays.cxx,v
retrieving revision 1.24
diff -u -3 -p -r1.24 otherArrays.cxx
--- Common/Testing/Cxx/otherArrays.cxx 29 Jun 2005 14:07:30 -0000 1.24
+++ Common/Testing/Cxx/otherArrays.cxx 4 Sep 2006 00:48:47 -0000
@@ -26,6 +26,8 @@
#include "vtkDoubleArray.h"
#include "vtkIdTypeArray.h"
+#include <vtksys/ios/sstream>
+
#define SIZE 1000
template <class T, class A, class V>
@@ -666,7 +668,7 @@ int otherArraysTest(ostream& strm)
int otherArrays(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
// return otherArraysTest(vtkmsg_with_warning_C4701);
return otherArraysTest(cerr);
Index: Common/Testing/Cxx/otherByteSwap.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherByteSwap.cxx,v
retrieving revision 1.10
diff -u -3 -p -r1.10 otherByteSwap.cxx
--- Common/Testing/Cxx/otherByteSwap.cxx 29 Jun 2005 14:07:30 -0000 1.10
+++ Common/Testing/Cxx/otherByteSwap.cxx 4 Sep 2006 00:48:47 -0000
@@ -20,6 +20,8 @@
#include "vtkByteSwap.h"
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
int TestByteSwap(ostream& strm)
{
// actual test
@@ -154,6 +156,6 @@ int TestByteSwap(ostream& strm)
int otherByteSwap(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestByteSwap(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 -u -3 -p -r1.6 otherStringArray.cxx
--- Common/Testing/Cxx/otherStringArray.cxx 5 Jan 2006 18:29:03 -0000 1.6
+++ Common/Testing/Cxx/otherStringArray.cxx 4 Sep 2006 00:48:47 -0000
@@ -19,6 +19,8 @@
#include "vtkStringArray.h"
#include "vtkIdList.h"
+#include <vtksys/ios/sstream>
+
#define SIZE 1000
int doStringArrayTest(ostream& strm, int size)
@@ -199,7 +201,7 @@ int otherStringArrayTest(ostream& strm)
int otherStringArray(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
// return otherArraysTest(vtkmsg_with_warning_C4701);
return otherStringArrayTest(cerr);
Index: Common/Testing/Cxx/otherTimerLog.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Common/Testing/Cxx/otherTimerLog.cxx,v
retrieving revision 1.22
diff -u -3 -p -r1.22 otherTimerLog.cxx
--- Common/Testing/Cxx/otherTimerLog.cxx 29 Jun 2005 14:07:30 -0000 1.22
+++ Common/Testing/Cxx/otherTimerLog.cxx 4 Sep 2006 00:48:47 -0000
@@ -20,6 +20,8 @@
#include "vtkTimerLog.h"
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
// this is needed for the unlink call
#if defined(__CYGWIN__)
#include <sys/unistd.h>
@@ -68,7 +70,7 @@ void otherTimerLogTest(ostream& strm)
int otherTimerLog(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
otherTimerLogTest(vtkmsg_with_warning_C4701);
return 0;
Index: Examples/MultiBlock/Cxx/MultiBlock.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Examples/MultiBlock/Cxx/MultiBlock.cxx,v
retrieving revision 1.3
diff -u -3 -p -r1.3 MultiBlock.cxx
--- Examples/MultiBlock/Cxx/MultiBlock.cxx 29 Mar 2005 20:35:15 -0000 1.3
+++ Examples/MultiBlock/Cxx/MultiBlock.cxx 4 Sep 2006 00:48:47 -0000
@@ -37,6 +37,8 @@
#include "vtkTestUtilities.h"
#include "vtkXMLStructuredGridReader.h"
+#include <vtksys/ios/sstream>
+
int main(int argc, char* argv[])
{
// Standard rendering classes
@@ -60,9 +62,9 @@ int main(int argc, char* argv[])
{
// Here we load the three separate files (each containing
// a structured grid dataset)
- ostrstream fname;
+ vtksys_ios::ostringstream fname;
fname << "Data/multicomb_" << i << ".vts" << ends;
- char* fstr = fname.str();
+ const char* fstr = fname.str().c_str();
char* cfname =
vtkTestUtilities::ExpandDataFileName(argc, argv, fstr);
reader->SetFileName(cfname);
Index: Filtering/Testing/Cxx/otherCellArray.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellArray.cxx,v
retrieving revision 1.1
diff -u -3 -p -r1.1 otherCellArray.cxx
--- Filtering/Testing/Cxx/otherCellArray.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherCellArray.cxx 4 Sep 2006 00:48:47 -0000
@@ -24,6 +24,8 @@
#include "vtkIdTypeArray.h"
#include "vtkQuad.h"
+#include <vtksys/ios/sstream>
+
int TestCellArray(ostream& strm)
{
// actual test
@@ -81,6 +83,6 @@ int TestCellArray(ostream& strm)
int otherCellArray(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestCellArray(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 -u -3 -p -r1.1 otherCellBoundaries.cxx
--- Filtering/Testing/Cxx/otherCellBoundaries.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherCellBoundaries.cxx 4 Sep 2006 00:48:47 -0000
@@ -36,6 +36,7 @@
#include "vtkPentagonalPrism.h"
#include "vtkHexagonalPrism.h"
+#include <vtksys/ios/sstream>
int TestOCB(ostream& strm)
{
@@ -494,6 +495,6 @@ int TestOCB(ostream& strm)
int otherCellBoundaries(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestOCB(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 -u -3 -p -r1.1 otherCellPosition.cxx
--- Filtering/Testing/Cxx/otherCellPosition.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherCellPosition.cxx 4 Sep 2006 00:48:47 -0000
@@ -36,6 +36,8 @@
#include "vtkPentagonalPrism.h"
#include "vtkHexagonalPrism.h"
+#include <vtksys/ios/sstream>
+
int TestOCP(ostream& strm)
{
// actual test
@@ -578,6 +580,6 @@ int TestOCP(ostream& strm)
int otherCellPosition(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestOCP(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 -u -3 -p -r1.15 otherColorTransferFunction.cxx
--- Filtering/Testing/Cxx/otherColorTransferFunction.cxx 29 Jun 2005 14:07:30 -0000 1.15
+++ Filtering/Testing/Cxx/otherColorTransferFunction.cxx 4 Sep 2006 00:48:47 -0000
@@ -20,6 +20,8 @@
#include "vtkColorTransferFunction.h"
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
int Test(ostream& strm)
{
int i, j, k;
@@ -147,6 +149,6 @@ int Test(ostream& strm)
int otherColorTransferFunction(int, char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return Test(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 -u -3 -p -r1.1 otherEmptyCell.cxx
--- Filtering/Testing/Cxx/otherEmptyCell.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherEmptyCell.cxx 4 Sep 2006 00:48:47 -0000
@@ -24,6 +24,8 @@
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
void TestOEC(ostream& strm)
{
vtkEmptyCell *cell = vtkEmptyCell::New();
@@ -93,7 +95,7 @@ void TestOEC(ostream& strm)
int otherEmptyCell(int , char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
TestOEC(vtkmsg_with_warning_C4701);
return 0;
Index: Filtering/Testing/Cxx/otherRectilinearGrid.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherRectilinearGrid.cxx,v
retrieving revision 1.1
diff -u -3 -p -r1.1 otherRectilinearGrid.cxx
--- Filtering/Testing/Cxx/otherRectilinearGrid.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherRectilinearGrid.cxx 4 Sep 2006 00:48:47 -0000
@@ -28,6 +28,8 @@
#include "vtkRectilinearGrid.h"
#include "vtkShortArray.h"
+#include <vtksys/ios/sstream>
+
int TestORG(ostream& strm)
{
int i, j, k;
@@ -597,6 +599,6 @@ int TestORG(ostream& strm)
int otherRectilinearGrid(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestORG(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 -u -3 -p -r1.1 otherStructuredGrid.cxx
--- Filtering/Testing/Cxx/otherStructuredGrid.cxx 2 May 2006 17:29:41 -0000 1.1
+++ Filtering/Testing/Cxx/otherStructuredGrid.cxx 4 Sep 2006 00:48:47 -0000
@@ -28,6 +28,8 @@
#include "vtkShortArray.h"
#include "vtkStructuredGrid.h"
+#include <vtksys/ios/sstream>
+
int TestOSG(ostream& strm)
{
int i, j, k;
@@ -629,6 +631,6 @@ int TestOSG(ostream& strm)
int otherStructuredGrid(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestOSG(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 -u -3 -p -r1.3 quadraticEvaluation.cxx
--- Filtering/Testing/Cxx/quadraticEvaluation.cxx 31 Jul 2006 22:34:02 -0000 1.3
+++ Filtering/Testing/Cxx/quadraticEvaluation.cxx 4 Sep 2006 00:48:48 -0000
@@ -29,6 +29,8 @@
#include "vtkQuadraticPyramid.h"
#include "vtkPoints.h"
+#include <vtksys/ios/sstream>
+
void ComputeDataValues(vtkPoints *pts, double *edgeValues)
{
double x[3];
@@ -396,6 +398,6 @@ int TestQE(ostream& strm)
int quadraticEvaluation(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return TestQE(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 -u -3 -p -r1.12 otherCreation.cxx
--- GenericFiltering/Testing/Cxx/otherCreation.cxx 4 Apr 2006 11:22:52 -0000 1.12
+++ GenericFiltering/Testing/Cxx/otherCreation.cxx 4 Sep 2006 00:48:48 -0000
@@ -1680,7 +1680,7 @@ int TestWithPointsAndCellsAndPointData(o
int otherCreation(int vtkNotUsed(argc),
char *vtkNotUsed(argv)[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
if (TestEmpty(cout))
{
Index: Hybrid/vtkFacetReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Hybrid/vtkFacetReader.cxx,v
retrieving revision 1.3
diff -u -3 -p -r1.3 vtkFacetReader.cxx
--- Hybrid/vtkFacetReader.cxx 22 Dec 2004 18:16:57 -0000 1.3
+++ Hybrid/vtkFacetReader.cxx 4 Sep 2006 00:48:48 -0000
@@ -33,12 +33,13 @@
#include <sys/stat.h>
#include <vtkstd/string>
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkFacetReader, "$Revision: 1.3 $");
vtkStandardNewMacro(vtkFacetReader);
//------------------------------------------------------------------------------
-// Due to a buggy stream library on the HP and another on Mac OSX, we
+// Due to a buggy stream library on the HP and another on Mac OS X, we
// need this very carefully written version of getline. Returns true
// if any data were read before the end-of-file was reached.
//
@@ -289,7 +290,7 @@ int vtkFacetReader::RequestData(
}
char* strPtr = &(*stringBuffer.begin());
strcpy(strPtr, line.c_str());
- istrstream lineStream(strPtr);
+ vtksys_ios::istringstream lineStream(strPtr);
vtkIdType kk;
int material = -1, relativePartNumber = -1;
for ( kk = 0; kk < num_points_per_cell; kk ++ )
Index: Hybrid/vtkRIBExporter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Hybrid/vtkRIBExporter.cxx,v
retrieving revision 1.63
diff -u -3 -p -r1.63 vtkRIBExporter.cxx
--- Hybrid/vtkRIBExporter.cxx 4 Jan 2005 20:56:39 -0000 1.63
+++ Hybrid/vtkRIBExporter.cxx 4 Sep 2006 00:48:48 -0000
@@ -40,6 +40,8 @@
#include "vtkTIFFWriter.h"
#include "vtkTexture.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkRIBExporter, "$Revision: 1.63 $");
vtkStandardNewMacro(vtkRIBExporter);
@@ -837,7 +839,7 @@ void vtkRIBExporter::WritePolygons (vtkP
if ( pointData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < pointData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = pointData->GetArray(cc);
@@ -856,14 +858,13 @@ void vtkRIBExporter::WritePolygons (vtkP
str_with_warning_C4701 << "] ";
}
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() );
}
if ( cellData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < cellData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = cellData->GetArray(cc);
@@ -882,14 +883,13 @@ void vtkRIBExporter::WritePolygons (vtkP
str_with_warning_C4701 << "] ";
}
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() );
}
if ( fieldData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < fieldData->GetNumberOfArrays(); cc ++ )
{
@@ -909,8 +909,7 @@ void vtkRIBExporter::WritePolygons (vtkP
str_with_warning_C4701 << "] ";
}
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() );
}
}
@@ -1093,7 +1092,7 @@ void vtkRIBExporter::WriteStrips (vtkPol
if ( pointData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < pointData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = pointData->GetArray(cc);
@@ -1112,14 +1111,13 @@ void vtkRIBExporter::WriteStrips (vtkPol
str_with_warning_C4701 << "] ";
}
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() );
}
if ( cellData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < cellData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = cellData->GetArray(cc);
@@ -1138,14 +1136,13 @@ void vtkRIBExporter::WriteStrips (vtkPol
str_with_warning_C4701 << "] ";
}
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() );
}
if ( fieldData )
{
int cc, aa;
- ostrstream str_with_warning_C4701;
+ vtksys_ios::ostringstream str_with_warning_C4701;
for ( cc = 0; cc < fieldData->GetNumberOfArrays(); cc ++ )
{
vtkDataArray *array = fieldData->GetArray(cc);
@@ -1164,8 +1161,7 @@ void vtkRIBExporter::WriteStrips (vtkPol
str_with_warning_C4701 << "] ";
}
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() );
}
}
fprintf (this->FilePtr, "\n");
Index: IO/vtkDataReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkDataReader.cxx,v
retrieving revision 1.135
diff -u -3 -p -r1.135 vtkDataReader.cxx
--- IO/vtkDataReader.cxx 8 May 2006 18:37:11 -0000 1.135
+++ IO/vtkDataReader.cxx 4 Sep 2006 00:48:48 -0000
@@ -41,6 +41,7 @@
#include <ctype.h>
#include <sys/stat.h>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkDataReader, "$Revision: 1.135 $");
vtkStandardNewMacro(vtkDataReader);
@@ -364,15 +365,17 @@ int vtkDataReader::OpenVTKFile()
if (this->InputArray)
{
vtkDebugMacro(<< "Reading from InputArray");
- this->IS = new istrstream(this->InputArray->GetPointer(0),
- this->InputArray->GetNumberOfTuples()*
- this->InputArray->GetNumberOfComponents());
+ this->IS = new vtksys_ios::istringstream(
+ vtkstd::string(this->InputArray->GetPointer(0),
+ this->InputArray->GetNumberOfTuples()*
+ this->InputArray->GetNumberOfComponents()));
return 1;
}
else if (this->InputString)
{
vtkDebugMacro(<< "Reading from InputString");
- this->IS = new istrstream(this->InputString, this->InputStringLength);
+ this->IS = new vtksys_ios::istringstream(
+ vtkstd::string(this->InputString, this->InputStringLength) );
return 1;
}
}
@@ -2327,7 +2330,7 @@ void vtkDataReader::DecodeArrayName(char
return;
}
//strcpy(resname, name);
- ostrstream str;
+ vtksys_ios::ostringstream str;
int cc = 0;
unsigned int ch;
int len = static_cast<int>(strlen(name));
@@ -2353,6 +2356,5 @@ void vtkDataReader::DecodeArrayName(char
cc ++;
}
str << ends;
- strcpy(resname, str.str());
- str.rdbuf()->freeze(0);
+ strcpy(resname, str.str().c_str());
}
Index: IO/vtkDataWriter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkDataWriter.cxx,v
retrieving revision 1.111
diff -u -3 -p -r1.111 vtkDataWriter.cxx
--- IO/vtkDataWriter.cxx 9 May 2006 14:30:13 -0000 1.111
+++ IO/vtkDataWriter.cxx 4 Sep 2006 00:48:48 -0000
@@ -36,6 +36,8 @@
#include "vtkUnsignedLongArray.h"
#include "vtkUnsignedShortArray.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkDataWriter, "$Revision: 1.111 $");
vtkStandardNewMacro(vtkDataWriter);
@@ -163,9 +165,9 @@ ostream *vtkDataWriter::OpenVTKFile()
this->OutputStringAllocatedLength = (int) (500
+ 1000 * input->GetActualMemorySize());
this->OutputString = new char[this->OutputStringAllocatedLength];
-
- fptr = new ostrstream(this->OutputString,
- this->OutputStringAllocatedLength);
+ fptr = new vtksys_ios::ostringstream(
+ vtkstd::string (this->OutputString,
+ this->OutputStringAllocatedLength));
}
else
{
@@ -1151,16 +1153,17 @@ void vtkDataWriter::CloseVTKFile(ostream
{
if (this->WriteToOutputString)
{
- char *tmp;
- ostrstream *ostr = (ostrstream*)(fp);
- this->OutputStringLength = ostr->pcount();
+ const char *tmp;
+ vtksys_ios::ostringstream *ostr =
+ dynamic_cast<vtksys_ios::ostringstream*>(fp);
+ this->OutputStringLength = ostr.str().size();
if (this->OutputStringLength == this->OutputStringAllocatedLength)
{
vtkErrorMacro("OutputString was not long enough.");
}
// Sanity check.
- tmp = ostr->str();
+ tmp = ostr->str().c_str();
if (tmp != this->OutputString)
{
vtkErrorMacro("String mismatch");
Index: IO/vtkParticleReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkParticleReader.cxx,v
retrieving revision 1.28
diff -u -3 -p -r1.28 vtkParticleReader.cxx
--- IO/vtkParticleReader.cxx 24 May 2005 01:06:42 -0000 1.28
+++ IO/vtkParticleReader.cxx 4 Sep 2006 00:48:49 -0000
@@ -31,6 +31,7 @@
#include <vtkstd/algorithm>
#include <vtkstd/vector>
#include <vtkstd/string>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkParticleReader, "$Revision: 1.28 $");
vtkStandardNewMacro(vtkParticleReader);
@@ -93,7 +94,7 @@ namespace {
vtkstd::replace(s.begin(),s.end(),',','\t');
// We have data.
- strstream is;
+ vtksys_ios::stringstream is;
is << s.c_str() << ends;// no istringstream in VTK
is >> val[0] >> val[1] >> val[2] >> val[3];
Index: IO/vtkWriter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkWriter.cxx,v
retrieving revision 1.43
diff -u -3 -p -r1.43 vtkWriter.cxx
--- IO/vtkWriter.cxx 19 Jan 2005 18:00:09 -0000 1.43
+++ IO/vtkWriter.cxx 4 Sep 2006 00:48:49 -0000
@@ -21,6 +21,8 @@
#include "vtkInformation.h"
#include "vtkInformationVector.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkWriter, "$Revision: 1.43 $");
// Construct with no start and end write methods or arguments.
@@ -169,7 +171,7 @@ void vtkWriter::EncodeArrayName(char* re
return;
}
int cc = 0;
- ostrstream str;
+ vtksys_ios::ostringstream str;
char buffer[10];
@@ -190,6 +192,5 @@ void vtkWriter::EncodeArrayName(char* re
cc++;
}
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 -u -3 -p -r1.26 vtkXMLDataElement.cxx
--- IO/vtkXMLDataElement.cxx 5 Jan 2006 18:29:04 -0000 1.26
+++ IO/vtkXMLDataElement.cxx 4 Sep 2006 00:48:49 -0000
@@ -19,6 +19,7 @@
#include "vtkXMLUtilities.h"
#include <ctype.h>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkXMLDataElement, "$Revision: 1.26 $");
vtkStandardNewMacro(vtkXMLDataElement);
@@ -107,12 +108,11 @@ void vtkXMLDataElement::ReadXMLAttribute
}
else
{
- ostrstream str;
+ vtksys_ios::ostringstream str;
vtkXMLUtilities::EncodeString(
atts[i+1], VTK_ENCODING_UTF_8, str, this->GetAttributeEncoding(), 0);
str << ends;
- this->SetAttribute(atts[i], str.str());
- str.rdbuf()->freeze(0);
+ this->SetAttribute(atts[i], str.str().c_str());
}
}
}
@@ -565,7 +565,7 @@ template <class T>
int vtkXMLDataElementVectorAttributeParse(const char* str, int length, T* data)
{
if(!str || !length || !data) { return 0; }
- strstream vstr;
+ vtksys_ios::stringstream vstr;
vstr << str << ends;
int i;
for(i=0;i < length;++i)
@@ -834,15 +834,14 @@ void vtkXMLDataElementVectorAttributeSet
{
return;
}
- strstream vstr;
+ vtksys_ios::stringstream vstr;
vstr << data[0];
for(int i = 1; i < length; ++i)
{
vstr << ' ' << data[i];
}
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 -u -3 -p -r1.4 vtkXMLMultiGroupDataWriter.cxx
--- IO/vtkXMLMultiGroupDataWriter.cxx 28 Aug 2006 17:47:55 -0000 1.4
+++ IO/vtkXMLMultiGroupDataWriter.cxx 4 Sep 2006 00:48:49 -0000
@@ -48,6 +48,7 @@
#include <vtkstd/string>
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXMLMultiGroupDataWriter);
@@ -224,13 +225,13 @@ int vtkXMLMultiGroupDataWriter::RequestD
unsigned int numLevels = hdBoxInput->GetNumberOfLevels();
for (unsigned int levelId=0; levelId<numLevels-1; levelId++)
{
- ostrstream entry_with_warning_C4701;
+ vtksys_ios::ostringstream entry_with_warning_C4701;
entry_with_warning_C4701
<< "<RefinementRatio level=\"" << levelId << "\""
<< " refinement=\"" << hdBoxInput->GetRefinementRatio(levelId) << "\""
<< "/>" << ends;
- this->AppendEntry(entry_with_warning_C4701.str());
- delete[] entry_with_warning_C4701.str();
+ this->AppendEntry(entry_with_warning_C4701.str().c_str());
+ delete[] entry_with_warning_C4701.str().c_str();
}
}
@@ -252,7 +253,7 @@ int vtkXMLMultiGroupDataWriter::RequestD
// Set the file name.
vtkstd::string fname = this->Internal->CreatePieceFileName(i);
// Create the entry for the collection file.
- ostrstream entry_with_warning_C4701;
+ vtksys_ios::ostringstream entry_with_warning_C4701;
entry_with_warning_C4701
<< "<DataSet group=\"" << groupId << "\" dataset=\"" << dataSetId << "\"";
if (hdBoxInput)
@@ -270,8 +271,8 @@ int vtkXMLMultiGroupDataWriter::RequestD
}
entry_with_warning_C4701
<< " file=\"" << fname.c_str() << "\"/>" << ends;
- this->AppendEntry(entry_with_warning_C4701.str());
- delete[] entry_with_warning_C4701.str();
+ this->AppendEntry(entry_with_warning_C4701.str().c_str());
+ delete[] entry_with_warning_C4701.str().c_str();
vtkDataObject* dobj = hdInput->GetDataSet(groupId, dataSetId);
vtkDataSet* ds = vtkDataSet::SafeDownCast(dobj);
@@ -683,13 +684,12 @@ void vtkXMLMultiGroupDataWriter::DeleteA
vtkstd::string vtkXMLMultiGroupDataWriterInternals::CreatePieceFileName(int index)
{
vtkstd::string fname;
- ostrstream fn_with_warning_C4701;
+ vtksys_ios::ostringstream fn_with_warning_C4701;
fn_with_warning_C4701
<< this->FilePrefix.c_str() << "/"
<< this->FilePrefix.c_str() << "_" << index << "."
<< this->Writers[index]->GetDefaultFileExtension() << ends;
- fname = fn_with_warning_C4701.str();
- fn_with_warning_C4701.rdbuf()->freeze(0);
+ fname = fn_with_warning_C4701.str().c_str();
return fname;
}
Index: IO/vtkXMLPDataReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPDataReader.cxx,v
retrieving revision 1.18
diff -u -3 -p -r1.18 vtkXMLPDataReader.cxx
--- IO/vtkXMLPDataReader.cxx 5 Jan 2006 18:29:04 -0000 1.18
+++ IO/vtkXMLPDataReader.cxx 4 Sep 2006 00:48:49 -0000
@@ -26,6 +26,8 @@
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkXMLPDataReader, "$Revision: 1.18 $");
//----------------------------------------------------------------------------
@@ -432,13 +434,14 @@ int vtkXMLPDataReader::CanReadPiece(int
//----------------------------------------------------------------------------
char* vtkXMLPDataReader::CreatePieceFileName(const char* fileName)
{
- ostrstream fn_with_warning_C4701;
+ // FIXME
+ vtksys_ios::ostringstream fn_with_warning_C4701;
if(this->PathName)
{
fn_with_warning_C4701 << this->PathName;
}
fn_with_warning_C4701 << fileName << ends;
- return fn_with_warning_C4701.str();
+ return const_cast<char*>(fn_with_warning_C4701.str().c_str());
}
//----------------------------------------------------------------------------
Index: IO/vtkXMLPDataWriter.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPDataWriter.cxx,v
retrieving revision 1.15
diff -u -3 -p -r1.15 vtkXMLPDataWriter.cxx
--- IO/vtkXMLPDataWriter.cxx 26 May 2005 17:26:41 -0000 1.15
+++ IO/vtkXMLPDataWriter.cxx 4 Sep 2006 00:48:49 -0000
@@ -18,6 +18,8 @@
#include "vtkDataSet.h"
#include "vtkErrorCode.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkXMLPDataWriter, "$Revision: 1.15 $");
//----------------------------------------------------------------------------
@@ -259,15 +261,16 @@ void vtkXMLPDataWriter::SplitFileName()
//----------------------------------------------------------------------------
char* vtkXMLPDataWriter::CreatePieceFileName(int index, const char* path)
{
- ostrstream fn_with_warning_C4701;
+ // FIXME
+ vtksys_ios::ostringstream fn_with_warning_C4701;
if(path) { fn_with_warning_C4701 << path; }
fn_with_warning_C4701 << this->FileNameBase << "_" << index;
if(this->PieceFileNameExtension)
- { fn_with_warning_C4701 << this->PieceFileNameExtension; }
+ { fn_with_warning_C4701 << this->PieceFileNameExtension; }
//if(this->FileNameExtension)
//{ fn_with_warning_C4701 << this->FileNameExtension; }
- fn_with_warning_C4701 << ends;
- return fn_with_warning_C4701.str();
+ fn_with_warning_C4701;
+ return const_cast<char*>(fn_with_warning_C4701.str().c_str());
}
//----------------------------------------------------------------------------
Index: IO/vtkXMLPStructuredDataReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLPStructuredDataReader.cxx,v
retrieving revision 1.22
diff -u -3 -p -r1.22 vtkXMLPStructuredDataReader.cxx
--- IO/vtkXMLPStructuredDataReader.cxx 3 Aug 2005 21:57:50 -0000 1.22
+++ IO/vtkXMLPStructuredDataReader.cxx 4 Sep 2006 00:48:49 -0000
@@ -23,6 +23,8 @@
#include "vtkXMLDataElement.h"
#include "vtkXMLStructuredDataReader.h"
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkXMLPStructuredDataReader, "$Revision: 1.22 $");
//----------------------------------------------------------------------------
@@ -430,7 +432,7 @@ int vtkXMLPStructuredDataReader::Compute
if(!this->ExtentSplitter->ComputeSubExtents())
{
// A portion of the extent is not available.
- ostrstream e_with_warning_C4701;
+ vtksys_ios::ostringstream e_with_warning_C4701;
e_with_warning_C4701
<< "No available piece provides data for the following extents:\n";
for(i=0; i < this->ExtentSplitter->GetNumberOfSubExtents(); ++i)
@@ -447,8 +449,7 @@ int vtkXMLPStructuredDataReader::Compute
}
}
e_with_warning_C4701 << "The UpdateExtent cannot be filled." << ends;
- vtkErrorMacro(<< e_with_warning_C4701.str());
- e_with_warning_C4701.rdbuf()->freeze(0);
+ vtkErrorMacro(<< e_with_warning_C4701.str().c_str());
return 0;
}
Index: IO/vtkXMLReader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/vtkXMLReader.cxx,v
retrieving revision 1.44
diff -u -3 -p -r1.44 vtkXMLReader.cxx
--- IO/vtkXMLReader.cxx 18 Aug 2006 14:16:48 -0000 1.44
+++ IO/vtkXMLReader.cxx 4 Sep 2006 00:48:49 -0000
@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <assert.h>
+#include <vtksys/ios/sstream>
vtkCxxRevisionMacro(vtkXMLReader, "$Revision: 1.44 $");
@@ -679,7 +680,7 @@ int vtkXMLReader::CanReadFileVersionStri
if(s > begin)
{
- strstream str;
+ vtksys_ios::stringstream str;
str.write(begin, s-begin);
str << ends;
str >> major;
@@ -690,7 +691,7 @@ int vtkXMLReader::CanReadFileVersionStri
}
if(++s < end)
{
- strstream str;
+ vtksys_ios::stringstream str;
str.write(s, end-s);
str << ends;
str >> minor;
@@ -870,10 +871,9 @@ void vtkXMLReader::SetDataArraySelection
}
else
{
- ostrstream ostr_with_warning_C4701;
+ vtksys_ios::ostringstream 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);
+ 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 -u -3 -p -r1.7 vtkXMLUtilities.cxx
--- IO/vtkXMLUtilities.cxx 22 Nov 2005 21:03:42 -0000 1.7
+++ IO/vtkXMLUtilities.cxx 4 Sep 2006 00:48:49 -0000
@@ -25,6 +25,7 @@
#endif
#include <vtkstd/vector>
+#include <vtksys/ios/sstream>
typedef vtkstd::vector<vtkXMLDataElement*> vtkXMLUtilitiesDataElementContainer;
@@ -418,11 +419,10 @@ vtkXMLUtilities::ReadElementFromString(c
return 0;
}
- strstream strstr;
+ vtksys_ios::stringstream strstr;
strstr << str;
vtkXMLDataElement *res =
vtkXMLUtilities::ReadElementFromStream(strstr, encoding);
- strstr.rdbuf()->freeze(0);
return res;
}
@@ -584,13 +584,13 @@ int vtkXMLUtilities::FactorElementsInter
char buffer[5];
sprintf(buffer, "%02d_", pool->GetNumberOfNestedElements());
- ostrstream id;
+ vtksys_ios::ostringstream id;
id << buffer << tree->GetName() << ends;
vtkXMLDataElement *factored = vtkXMLDataElement::New();
factored->SetName(VTK_XML_UTILITIES_FACTORED_NAME);
factored->SetAttributeEncoding(pool->GetAttributeEncoding());
- factored->SetAttribute("Id", id.str());
+ factored->SetAttribute("Id", id.str().c_str());
pool->AddNestedElement(factored);
factored->Delete();
@@ -604,16 +604,14 @@ int vtkXMLUtilities::FactorElementsInter
similar_trees[i]->RemoveAllAttributes();
similar_trees[i]->RemoveAllNestedElements();
similar_trees[i]->SetName(VTK_XML_UTILITIES_FACTORED_REF_NAME);
- similar_trees[i]->SetAttribute("Id", id.str());
+ similar_trees[i]->SetAttribute("Id", id.str().c_str());
}
tree->RemoveAllAttributes();
tree->RemoveAllNestedElements();
tree->SetName(VTK_XML_UTILITIES_FACTORED_REF_NAME);
- tree->SetAttribute("Id", id.str());
+ tree->SetAttribute("Id", id.str().c_str());
- id.rdbuf()->freeze(0);
-
delete [] similar_trees;
return 1;
Index: Rendering/vtkCocoaRenderWindow.mm
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindow.mm,v
retrieving revision 1.34
diff -u -3 -p -r1.34 vtkCocoaRenderWindow.mm
--- Rendering/vtkCocoaRenderWindow.mm 25 Jul 2006 23:38:33 -0000 1.34
+++ Rendering/vtkCocoaRenderWindow.mm 4 Sep 2006 00:48:50 -0000
@@ -20,6 +20,8 @@
#import "vtkRendererCollection.h"
#import "vtkCocoaGLView.h"
+#include <vtksys/ios/sstream>
+
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040
#endif
@@ -204,7 +206,7 @@ const char* vtkCocoaRenderWindow::Report
const char* glVersion = (const char*) glGetString(GL_VERSION);
const char* glExtensions = (const char*) glGetString(GL_EXTENSIONS);
- ostrstream strm;
+ vtksys_ios::ostringstream strm;
strm << "OpenGL vendor string: " << glVendor
<< "\nOpenGL renderer string: " << glRenderer
<< "\nOpenGL version string: " << glVersion
@@ -246,8 +248,8 @@ const char* vtkCocoaRenderWindow::Report
strm << ends;
delete[] this->Capabilities;
- this->Capabilities = new char[strlen(strm.str()) + 1];
- strcpy(this->Capabilities, strm.str());
+ this->Capabilities = new char[strlen(strm.str().c_str()) + 1];
+ strcpy(this->Capabilities, strm.str().c_str());
return this->Capabilities;
}
Index: Rendering/vtkInteractorEventRecorder.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkInteractorEventRecorder.cxx,v
retrieving revision 1.10
diff -u -3 -p -r1.10 vtkInteractorEventRecorder.cxx
--- Rendering/vtkInteractorEventRecorder.cxx 30 Dec 2005 15:53:36 -0000 1.10
+++ Rendering/vtkInteractorEventRecorder.cxx 4 Sep 2006 00:48:50 -0000
@@ -17,6 +17,9 @@
#include "vtkObjectFactory.h"
#include "vtkRenderWindowInteractor.h"
+#include <vtksys/stl/string>
+#include <vtksys/ios/sstream>
+
vtkCxxRevisionMacro(vtkInteractorEventRecorder, "$Revision: 1.10 $");
vtkStandardNewMacro(vtkInteractorEventRecorder);
@@ -155,7 +158,8 @@ void vtkInteractorEventRecorder::Play()
vtkErrorMacro(<< "No input string specified");
return;
}
- this->InputStream = new istrstream(this->InputString, len);
+ this->InputStream = new vtksys_ios::istringstream(
+ vtkstd::string(this->InputString, len));
if (this->InputStream->fail())
{
vtkErrorMacro(<< "Unable to read from string");
Index: Rendering/vtkWin32OpenGLRenderWindow.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkWin32OpenGLRenderWindow.cxx,v
retrieving revision 1.133
diff -u -3 -p -r1.133 vtkWin32OpenGLRenderWindow.cxx
--- Rendering/vtkWin32OpenGLRenderWindow.cxx 31 Mar 2006 21:05:36 -0000 1.133
+++ Rendering/vtkWin32OpenGLRenderWindow.cxx 4 Sep 2006 00:48:50 -0000
@@ -28,6 +28,7 @@
#include "vtkWin32RenderWindowInteractor.h"
#include <math.h>
+#include <vtksys/ios/sstream>
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
@@ -393,7 +394,7 @@ const char* vtkWin32OpenGLRenderWindow::
const char *glVersion = (const char *) glGetString(GL_VERSION);
const char *glExtensions = (const char *) glGetString(GL_EXTENSIONS);
- ostrstream strm;
+ vtksys_ios::ostringstream strm;
strm << "OpenGL vendor string: " << glVendor << endl;
strm << "OpenGL renderer string: " << glRenderer << endl;
strm << "OpenGL version string: " << glVersion << endl;
@@ -441,7 +442,7 @@ const char* vtkWin32OpenGLRenderWindow::
strm << ends;
delete[] this->Capabilities;
- this->Capabilities = strm.str();
+ this->Capabilities = strm.str().c_str();
return this->Capabilities;
}
Index: Rendering/vtkXOpenGLRenderWindow.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,v
retrieving revision 1.73
diff -u -3 -p -r1.73 vtkXOpenGLRenderWindow.cxx
--- Rendering/vtkXOpenGLRenderWindow.cxx 8 Jul 2006 16:34:16 -0000 1.73
+++ Rendering/vtkXOpenGLRenderWindow.cxx 4 Sep 2006 00:48:50 -0000
@@ -45,6 +45,8 @@
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
+#include <vtksys/ios/sstream>
+
class vtkXOpenGLRenderWindow;
class vtkRenderWindow;
class vtkXOpenGLRenderWindowInternal
@@ -1543,7 +1545,7 @@ const char* vtkXOpenGLRenderWindow::Repo
const char *glVersion = (const char *) glGetString(GL_VERSION);
const char *glExtensions = (const char *) glGetString(GL_EXTENSIONS);
- ostrstream strm;
+ vtksys_ios::ostringstream strm;
strm << "server glx vendor string: " << serverVendor << endl;
strm << "server glx version string: " << serverVersion << endl;
strm << "server glx extensions: " << serverExtensions << endl;
@@ -1569,8 +1571,9 @@ const char* vtkXOpenGLRenderWindow::Repo
}
}
strm << ends;
+ // FIXME
delete[] this->Capabilities;
- this->Capabilities = strm.str();
+ this->Capabilities = strm.str().c_str();
return this->Capabilities;
}
Index: Rendering/Testing/Cxx/otherCoordinate.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/Testing/Cxx/otherCoordinate.cxx,v
retrieving revision 1.11
diff -u -3 -p -r1.11 otherCoordinate.cxx
--- Rendering/Testing/Cxx/otherCoordinate.cxx 29 Jun 2005 14:07:33 -0000 1.11
+++ Rendering/Testing/Cxx/otherCoordinate.cxx 4 Sep 2006 00:48:50 -0000
@@ -24,6 +24,8 @@
#include "vtkDebugLeaks.h"
+#include <vtksys/ios/sstream>
+
void ToAll (ostream& strm, vtkCoordinate *c1, vtkViewport *ren1,
double *from)
{
@@ -168,7 +170,7 @@ int Test(ostream& strm)
int otherCoordinate(int,char *[])
{
- ostrstream vtkmsg_with_warning_C4701;
+ vtksys_ios::ostringstream vtkmsg_with_warning_C4701;
return Test(vtkmsg_with_warning_C4701);
}
Index: Utilities/MaterialLibrary/ProcessShader.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Utilities/MaterialLibrary/ProcessShader.cxx,v
retrieving revision 1.3
diff -u -3 -p -r1.3 ProcessShader.cxx
--- Utilities/MaterialLibrary/ProcessShader.cxx 5 Dec 2005 21:26:13 -0000 1.3
+++ Utilities/MaterialLibrary/ProcessShader.cxx 4 Sep 2006 00:48:50 -0000
@@ -20,6 +20,7 @@
#include <vtksys/SystemTools.hxx>
#include <vtksys/RegularExpression.hxx>
#include <vtksys/ios/fstream>
+#include <vtksys/ios/sstream>
class Output
{
@@ -31,11 +32,10 @@ public:
}
~Output()
{
- this->Stream.rdbuf()->freeze(0);
}
Output(const Output&){}
void operator=(const Output&){}
- ostrstream Stream;
+ vtksys_ios::ostringstream Stream;
int MaxLen;
long CurrentPosition;
@@ -193,8 +193,8 @@ int main(int argc, char* argv[])
return 1;
}
int kk;
- ostrstream createstring;
- ostrstream lenstr;
+ vtksys_ios::ostringstream createstring;
+ vtksys_ios::ostringstream lenstr;
for ( kk = 0; kk < num; kk ++ )
{
lenstr << endl
@@ -227,7 +227,7 @@ int main(int argc, char* argv[])
cout << "Cannot open output file: " << output.c_str() << endl;
return 1;
}
- fprintf(fp, "%s", ot.Stream.str());
+ fprintf(fp, "%s", ot.Stream.str().c_str());
fclose(fp);
return 0;
}
Index: VolumeRendering/vtkVREncodeString.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/VolumeRendering/vtkVREncodeString.cxx,v
retrieving revision 1.3
diff -u -3 -p -r1.3 vtkVREncodeString.cxx
--- VolumeRendering/vtkVREncodeString.cxx 29 Aug 2005 21:36:54 -0000 1.3
+++ VolumeRendering/vtkVREncodeString.cxx 4 Sep 2006 00:48:50 -0000
@@ -1,6 +1,7 @@
#include "vtkObject.h"
#include <vtkstd/string>
+#include <vtksys/ios/sstream>
class Output
{
@@ -12,9 +13,8 @@ public:
void operator=(const Output&);
~Output()
{
- this->Stream.rdbuf()->freeze(0);
}
- ostrstream Stream;
+ vtksys_ios::ostringstream Stream;
int ProcessFile(const char* file, const char* title)
{
@@ -89,7 +89,7 @@ int main(int argc, char* argv[])
cout << "Cannot open output file: " << output.c_str() << endl;
return 1;
}
- fprintf(fp, "%s", ot.Stream.str());
+ fprintf(fp, "%s", ot.Stream.str().c_str());
fclose(fp);
return 0;
}
? .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 <strstream> // Include real ansi strstreams.
38a38
> # include <vtksys/ios/sstream> // 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<int>(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 <<tempStep << ends;
---
> parser << ios::scientific <<tempStep;
913c911
< if(test->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.str() << "/" << ends;
---
> timeStep << Steps[i];
> path << this->PathPrefix->value <<timeStep.str() << "/";
1485c1482
< directory->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: "<<varPath.str());
---
> stringstream varPath;
> varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName;
> vtkDebugMacro(<<"Get internal variable: "<<varPath.str().c_str());
1690c1685
< ifstream * input = new ifstream(varPath.str(), ios::in VTK_IOS_NOCREATE);
---
> 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: "<<varPath.str());
---
> stringstream varPath;
> varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName;
> vtkDebugMacro(<<"Get boundary variable: "<<varPath.str().c_str());
1966c1958
< ifstream * input = new ifstream(varPath.str(), ios::in VTK_IOS_NOCREATE);
---
> 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<char *>(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<char *>(buf_with_warning_C4701.str().c_str()),\n");
930d928
< fprintf(fp," delete [] buf_with_warning_C4701.str();\n");
? .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;
---
> vtksys_ios::ostringstream msg;
618,620c618
< msg << ends;
< vtkDebugMacro(<< msg.str());
< msg.rdbuf()->freeze(0);
---
> vtkDebugMacro(<< msg.str().c_str());
711c709
< ostrstream msg;
---
> vtksys_ios::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 <strstream> // Include real ansi strstreams.
38a38
> # include <vtksys/ios/sstream> // Include real ansi stringstreams.
55,57d54
< using std::ostrstream;
< using std::istrstream;
< using std::strstream;
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;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> 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
157c157
< 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
202c202
< 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
71c71
< 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
84c84
< 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
497c497
< 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
581c581
< 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
150c150
< 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
96c96
< 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
600c600
< 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
632c632
< 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
399c399
< 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
292c292,293
< 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
840c840
< ostrstream str_with_warning_C4701;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::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 vtksys_ios::istringstream(str);
383c384,385
< this->IS = new istrstream(this->InputString, this->InputStringLength);
---
> vtkstd::string str(this->InputString, this->InputStringLength);
> this->IS = new vtksys_ios::istringstream(str);
2441,2442c2443,2444
< ostrstream str;
< int cc = 0;
---
> vtksys_ios::ostringstream str;
> size_t cc = 0;
2444,2445c2446,2447
< int len = static_cast<int>(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 vtksys_ios::ostringstream(str);
1260,1262c1260,1261
< char *tmp;
< ostrstream *ostr = (ostrstream*)(fp);
< this->OutputStringLength = ostr->pcount();
---
> vtksys_ios::ostringstream *ostr = (vtksys_ios::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;
---
> vtksys_ios::stringstream pdatastream(pdata);
2643,2644c2642
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
2729,2730c2727
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
2846,2847c2843
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
2896,2897c2892
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
2954,2955c2949
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
3010,3011c3004
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
3064,3065c3057
< strstream pdatastream;
< pdatastream << pdata.c_str() << ends;
---
> vtksys_ios::stringstream pdatastream(pdata);
4016,4017c4008
< strstream infostream;
< infostream << info.c_str() << ends;
---
> vtksys_ios::stringstream infostream(info);
4038d4028
< strstream pdatastream;
4041c4031
< 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
301c301
< ostrstream os;
---
> vtksys_ios::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;
---
> 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,767c765
< strstream conversion;
< conversion << token;
---
> 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 <<tempStep << ends;
---
> parser << ios::scientific <<tempStep;
913c911
< if(test->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.str() << "/" << ends;
---
> timeStep << Steps[i];
> path << this->PathPrefix->value <<timeStep.str() << "/";
1485c1482
< directory->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: "<<varPath.str());
---
> vtksys_ios::stringstream varPath;
> varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName;
> vtkDebugMacro(<<"Get internal variable: "<<varPath.str().c_str());
1690c1685
< ifstream * input = new ifstream(varPath.str(), ios::in VTK_IOS_NOCREATE);
---
> 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: "<<varPath.str());
---
> vtksys_ios::stringstream varPath;
> varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName;
> vtkDebugMacro(<<"Get boundary variable: "<<varPath.str().c_str());
1966c1958
< ifstream * input = new ifstream(varPath.str(), ios::in VTK_IOS_NOCREATE);
---
> 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
96,97c96,97
< 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
172c172
< ostrstream str;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::stringstream vstr;
> vstr << str;
837c836
< strstream vstr;
---
> vtksys_ios::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;
---
> 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
435c435
< ostrstream fn_with_warning_C4701;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> vtksys_ios::stringstream str;
689d688
< str << ends;
698c697
< strstream str;
---
> vtksys_ios::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);
---
> 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
421c421
< strstream strstr;
---
> vtksys_ios::stringstream strstr;
425c425
< strstr.rdbuf()->freeze(0);
---
>
587,588c587,588
< ostrstream id;
< id << buffer << tree->GetName() << ends;
---
> vtksys_ios::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;
---
> vtksys_ios::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 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
399c399
< ostrstream strm;
---
> vtksys_ios::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;
---
> vtksys_ios::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;
---
> 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
32,35c32
< ~Output()
< {
< this->Stream.rdbuf()->freeze(0);
< }
---
> ~Output(){}
38c35
< ostrstream Stream;
---
> vtksys_ios::ostringstream Stream;
196,197c193,194
< ostrstream createstring;
< ostrstream lenstr;
---
> vtksys_ios::ostringstream createstring;
> vtksys_ios::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(){}
> vtksys_ios::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;
---
> vtksys_ios::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," vtksys_ios::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," vtksys_ios::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," vtksys_ios::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," vtksys_ios::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<char *>(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," vtksys_ios::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<char *>(buf_with_warning_C4701.str().c_str()),\n");
930d928
< fprintf(fp," delete [] buf_with_warning_C4701.str();\n");
? .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 <vtksys/ios/sstream>
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 <strstream> // Include real ansi strstreams.
55,57d53
< using std::ostrstream;
< using std::istrstream;
< using std::strstream;
74,78d69
< # if defined(_MSC_VER)
< # include <strstrea.h> // Include old-style strstream from MSVC.
< # else
< # include <strstream.h> // 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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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<int>(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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
23a23
> #include <vtksys/ios/sstream>
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 <<tempStep << ends;
---
> parser << ios::scientific <<tempStep;
913c911
< if(test->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.str() << "/" << ends;
---
> timeStep << Steps[i];
> path << this->PathPrefix->value <<timeStep.str() << "/";
1485c1482
< directory->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: "<<varPath.str());
---
> vtksys_ios::stringstream varPath;
> varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName;
> vtkDebugMacro(<<"Get internal variable: "<<varPath.str().c_str());
1690c1685
< ifstream * input = new ifstream(varPath.str(), ios::in VTK_IOS_NOCREATE);
---
> 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: "<<varPath.str());
---
> vtksys_ios::stringstream varPath;
> varPath << this->PathPrefix->value << this->Steps[timeState] << "/" << varName;
> vtkDebugMacro(<<"Get boundary variable: "<<varPath.str().c_str());
1966c1958
< ifstream * input = new ifstream(varPath.str(), ios::in VTK_IOS_NOCREATE);
---
> 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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
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 <vtksys/ios/sstream>
>
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 <vtksys/ios/sstream>\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 <vtksys/ios/sstream>\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 <vtksys/ios/sstream>\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<char *>(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<char *>(buf_with_warning_C4701.str().c_str()),\n");
930d929
< fprintf(fp," delete [] buf_with_warning_C4701.str();\n");
| ||||||||
| Relationships | ||||||
|
||||||
| Relationships |
| Notes | |
|
(0002561) Mathieu Malaterre (developer) 2005-06-28 14:20 |
Can you change the CMAKE_CXX_FLAGS in your CMakeCache.txt to contains: -Wno-deprecated. And let me know if that fixes the problem Thanks Mathieu |
|
(0002562) Sean McBride (developer) 2005-06-28 14:48 |
Hi Mathieu, I am aware of -Wno-deprecated (It is mentionned in my bug report :) ) and adding it to CMAKE_CXX_FLAGS would surely remove the warning when building vtk, but this is not my concern. Because the warning appears from a vtk *header* I also get the warning in *my* application. That is the problem. Yes, I could use -Wno-deprecated in my app, but I don't want to because I like this warning (Apple uses it a lot in their headers, and it helps me get rid of using old Apple APIs) |
|
(0002563) Sean McBride (developer) 2005-06-28 15:06 |
More info: <http://www.devx.com/tips/Tip/14133> [^] <http://public.kitware.com/pipermail/vtkusers/2004-June/074739.html> [^] <http://public.kitware.com/pipermail/vtkusers/2004-December/077841.html> [^] So maybe this bug is a duplicate... But I'd really like to see it fixed! |
|
(0002564) Mathieu Malaterre (developer) 2005-06-28 15:17 |
Sean, If you really want to see this bug fixes, you are welcome to provide a patch for it. All you have to do is go over VTK code and change all instances of strstream and changes them into the vtk-ostringstream layer: #include <vtksys/ios/sstream> ... vtksys_ios::ostringstream str; ... Interested ? Mathieu |
|
(0002583) Sean McBride (developer) 2005-07-04 13:26 |
Hi Mathieu, well I'm not a C++ programmer and have never used sstream and the like, so I'm not too comfortable making these kinds of changes. Maybe in the future I could do it.... :) |
|
(0004538) Sean McBride (developer) 2006-07-25 17:26 |
Mathieu, OK, this warning is driving me crazy, I'm willing to try and fix it, but I still don't know much about C++. :) The strstream class seems to only be used in 4 classes, so it should be easy to fix I hope. For example, in vtkParticleReader.cxx: int operator () (vtkstd::string &s, T val[4]) { // SNIP! // We have data. strstream is; is << s.c_str() << ends;// no istringstream in VTK is >> val[0] >> val[1] >> val[2] >> val[3]; } would I change that to: vtksys_ios::ostringstream is; and then all the methods that strstream supports are also supported by vtksys_ios::ostringstream? Thanks. |
|
(0004552) Sean McBride (developer) 2006-07-26 18:00 |
OK, I have attached a _partial_ fix. I have changed most of the strstream, istrstream, and ostrstream to their vtksys_ios counterparts. It was mostly find&replace but of course I also had to add new #includes, and change a few APIs (str() -> c_str()), and added a few casts. vtkDataWriter.cxx:1158 needs special attention, it is currently broken. Please check my changes carefully. It compiles on my Mac, but I also changed unix & windows files that I cannot compile. Please search the entire VTK source tree for strstream, istrstream, and ostrstream-- there are still 37 occurrences (down from >100). Some are #includes which I have not removed yet, that will be step 2. Other occurrences are in comments, some in strings, etc, I'm not sure what to do with any of these! Also, some dashboard test fail, hopefully because of vtkDataWriter.cxx:1158. 90% tests passed, 10 tests failed out of 105 94 - BoxWidget (Failed) 95 - TestImplicitPlaneWidget (Failed) 96 - TestOrientationMarkerWidget (Failed) 97 - ImagePlaneWidget (Failed) 98 - TestImageTracerWidget (Failed) 99 - TestLineWidget (Failed) 100 - TestPlaneWidget (Failed) 101 - TestPointWidget (Failed) 102 - TestScalarBarWidget (Failed) 103 - TestSplineWidget (Failed) |
|
(0004836) Mathieu Malaterre (developer) 2006-09-03 20:50 |
review patch. Deferred for now. To be done: - still using 'ends', - still calling delete[] on the char * returned |
|
(0005621) Sean McBride (developer) 2006-10-31 16:16 |
See also bug 1457. |
|
(0006823) Mathieu Coursolle (reporter) 2007-03-16 16:44 |
Here is a new patch which fixes this bug. It removes the strstream code to replace it with <vtksys/ios/sstream> stringstream code. I tested it on Mac OSX with Java/TCL/Python wrapping turned on and all tests passed. However, in order to get rid of strstream, I had to change some code in files that I could not test. (ex: vtkWin32OpenGLRenderWindow.cxx). This patch (patchfileString.txt) fixes that bug, but still need to be tested on other platforms. |
|
(0006836) Mathieu Coursolle (reporter) 2007-03-19 13:22 |
patchfileString_vtksys_ios.txt uses explicit use of vtksys_ios:: prefix for stringstream. This new patch should be use rather than patchfileString.txt. |
|
(0006859) Mathieu Coursolle (reporter) 2007-03-20 12:06 |
Here is provided another patch. This one allows the use of vtksys/ios/sstream even if VTK_USE_ANSI_STDLIB is not defined. Attach patch: patchfileString20070319.txt |
|
(0008472) David Cole (developer) 2007-08-15 14:36 |
A (slightly) modified version of patchfileString20070319.txt has been applied to VTK today. Yay! Here is the commit log: BUG: Fix bug 1953: replace strstream use with stringstream now that kwsys provides stringstream on all platforms. Many thanks to Sean McBride and Mathieu Coursolle from Rogue Research for all their effort developing the patch (and patience in waiting for its commit...!). COMP: Eliminate performance warning in generated Java wrappers regarding jboolean cast to bool. ENH: Exclude Java and Python wrappers (in addition to already excluded Tcl wrappers) from coverage analysis. /cvsroot/VTK/VTK/CMake/CTestCustom.ctest.in,v <-- CTestCustom.ctest.in new revision: 1.26; previous revision: 1.25 /cvsroot/VTK/VTK/Common/Testing/Cxx/otherArrays.cxx,v <-- otherArrays.cxx new revision: 1.25; previous revision: 1.24 /cvsroot/VTK/VTK/Common/Testing/Cxx/otherByteSwap.cxx,v <-- otherByteSwap.cxx new revision: 1.11; previous revision: 1.10 /cvsroot/VTK/VTK/Common/Testing/Cxx/otherStringArray.cxx,v <-- otherStringArray.cxx new revision: 1.7; previous revision: 1.6 /cvsroot/VTK/VTK/Common/Testing/Cxx/otherTimerLog.cxx,v <-- otherTimerLog.cxx new revision: 1.23; previous revision: 1.22 /cvsroot/VTK/VTK/Common/vtkGarbageCollector.cxx,v <-- vtkGarbageCollector.cxx new revision: 1.31; previous revision: 1.30 /cvsroot/VTK/VTK/Common/vtkIOStream.h,v <-- vtkIOStream.h new revision: 1.9; previous revision: 1.8 /cvsroot/VTK/VTK/Common/vtkObjectBase.cxx,v <-- vtkObjectBase.cxx new revision: 1.16; previous revision: 1.15 /cvsroot/VTK/VTK/Common/vtkPythonUtil.cxx,v <-- vtkPythonUtil.cxx new revision: 1.80; previous revision: 1.79 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellArray.cxx,v <-- otherCellArray.cxx new revision: 1.2; previous revision: 1.1 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellBoundaries.cxx,v <-- otherCellBoundaries.cxx new revision: 1.2; previous revision: 1.1 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherCellPosition.cxx,v <-- otherCellPosition.cxx new revision: 1.2; previous revision: 1.1 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherColorTransferFunction.cxx,v <-- otherColorTransferFunction.cxx new revision: 1.16; previous revision: 1.15 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherEmptyCell.cxx,v <-- otherEmptyCell.cxx new revision: 1.2; previous revision: 1.1 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherRectilinearGrid.cxx,v <-- otherRectilinearGrid.cxx new revision: 1.2; previous revision: 1.1 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/otherStructuredGrid.cxx,v <-- otherStructuredGrid.cxx new revision: 1.2; previous revision: 1.1 /cvsroot/VTK/VTK/Filtering/Testing/Cxx/quadraticEvaluation.cxx,v <-- quadraticEvaluation.cxx new revision: 1.4; previous revision: 1.3 /cvsroot/VTK/VTK/GenericFiltering/Testing/Cxx/otherCreation.cxx,v <-- otherCreation.cxx new revision: 1.13; previous revision: 1.12 /cvsroot/VTK/VTK/Hybrid/vtkFacetReader.cxx,v <-- vtkFacetReader.cxx new revision: 1.4; previous revision: 1.3 /cvsroot/VTK/VTK/Hybrid/vtkRIBExporter.cxx,v <-- vtkRIBExporter.cxx new revision: 1.64; previous revision: 1.63 /cvsroot/VTK/VTK/IO/vtkDataReader.cxx,v <-- vtkDataReader.cxx new revision: 1.146; previous revision: 1.145 /cvsroot/VTK/VTK/IO/vtkDataWriter.cxx,v <-- vtkDataWriter.cxx new revision: 1.121; previous revision: 1.120 /cvsroot/VTK/VTK/IO/vtkFLUENTReader.cxx,v <-- vtkFLUENTReader.cxx new revision: 1.14; previous revision: 1.13 /cvsroot/VTK/VTK/IO/vtkMINCImageAttributes.cxx,v <-- vtkMINCImageAttributes.cxx new revision: 1.8; previous revision: 1.7 /cvsroot/VTK/VTK/IO/vtkOpenFOAMReader.cxx,v <-- vtkOpenFOAMReader.cxx new revision: 1.10; previous revision: 1.9 /cvsroot/VTK/VTK/IO/vtkParticleReader.cxx,v <-- vtkParticleReader.cxx new revision: 1.29; previous revision: 1.28 /cvsroot/VTK/VTK/IO/vtkWriter.cxx,v <-- vtkWriter.cxx new revision: 1.45; previous revision: 1.44 /cvsroot/VTK/VTK/IO/vtkXMLDataElement.cxx,v <-- vtkXMLDataElement.cxx new revision: 1.27; previous revision: 1.26 /cvsroot/VTK/VTK/IO/vtkXMLMultiGroupDataWriter.cxx,v <-- vtkXMLMultiGroupDataWriter.cxx new revision: 1.5; previous revision: 1.4 /cvsroot/VTK/VTK/IO/vtkXMLPDataReader.cxx,v <-- vtkXMLPDataReader.cxx new revision: 1.19; previous revision: 1.18 /cvsroot/VTK/VTK/IO/vtkXMLPDataWriter.cxx,v <-- vtkXMLPDataWriter.cxx new revision: 1.16; previous revision: 1.15 /cvsroot/VTK/VTK/IO/vtkXMLPStructuredDataReader.cxx,v <-- vtkXMLPStructuredDataReader.cxx new revision: 1.23; previous revision: 1.22 /cvsroot/VTK/VTK/IO/vtkXMLReader.cxx,v <-- vtkXMLReader.cxx new revision: 1.46; previous revision: 1.45 /cvsroot/VTK/VTK/IO/vtkXMLUtilities.cxx,v <-- vtkXMLUtilities.cxx new revision: 1.8; previous revision: 1.7 /cvsroot/VTK/VTK/Rendering/Testing/Cxx/otherCoordinate.cxx,v <-- otherCoordinate.cxx new revision: 1.12; previous revision: 1.11 /cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindow.mm,v <-- vtkCocoaRenderWindow.mm new revision: 1.52; previous revision: 1.51 /cvsroot/VTK/VTK/Rendering/vtkInteractorEventRecorder.cxx,v <-- vtkInteractorEventRecorder.cxx new revision: 1.12; previous revision: 1.11 /cvsroot/VTK/VTK/Rendering/vtkWin32OpenGLRenderWindow.cxx,v <-- vtkWin32OpenGLRenderWindow.cxx new revision: 1.148; previous revision: 1.147 /cvsroot/VTK/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,v <-- vtkXOpenGLRenderWindow.cxx new revision: 1.85; previous revision: 1.84 /cvsroot/VTK/VTK/Utilities/MaterialLibrary/ProcessShader.cxx,v <-- ProcessShader.cxx new revision: 1.4; previous revision: 1.3 /cvsroot/VTK/VTK/VolumeRendering/vtkVREncodeString.cxx,v <-- vtkVREncodeString.cxx new revision: 1.4; previous revision: 1.3 /cvsroot/VTK/VTK/Widgets/vtkBiDimensionalRepresentation2D.cxx,v <-- vtkBiDimensionalRepresentation2D.cxx new revision: 1.22; previous revision: 1.21 /cvsroot/VTK/VTK/Wrapping/vtkWrapJava.c,v <-- vtkWrapJava.c new revision: 1.59; previous revision: 1.58 /cvsroot/VTK/VTK/Wrapping/vtkWrapPython.c,v <-- vtkWrapPython.c new revision: 1.85; previous revision: 1.84 /cvsroot/VTK/VTK/Wrapping/vtkWrapTcl.c,v <-- vtkWrapTcl.c new revision: 1.51; previous revision: 1.50 Success, CVS operation completed |
|
(0010423) Sean McBride (developer) 2008-02-07 11:36 |
David, I just noticed that "-Wno-deprecated" is added in vtkDetermineCompilerFlags.cmake. I suspect this was added to work around this bug, long long ago. I removed the flag and trying doing a clean build. I don't get any deprecated warnings. I'd like to remove the flag, to ensure people don't commit new code using deprecated constructs. Could you try on a non-Mac to be sure? Index: CMake/vtkDetermineCompilerFlags.cmake =================================================================== RCS file: /cvsroot/VTK/VTK/CMake/vtkDetermineCompilerFlags.cmake,v retrieving revision 1.4 diff -r1.4 vtkDetermineCompilerFlags.cmake 21,22c21 < # A GCC compiler. Quiet warning about strstream deprecation. < SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -Wno-deprecated") --- > # A GCC compiler. |
|
(0010641) Sean McBride (developer) 2008-02-25 11:13 |
/cvsroot/VTK/VTK/CMake/vtkDetermineCompilerFlags.cmake,v <-- vtkDetermineCompilerFlags.cmake new revision: 1.5; previous revision: 1.4 |
|
(0010649) Sean McBride (developer) 2008-02-26 10:01 |
Last change caused dashboard warnings.... |
|
(0010650) Sean McBride (developer) 2008-02-26 10:44 |
David, what do you think of this. I have _conditionally_ restored the warning suppression: Index: CMake/vtkDetermineCompilerFlags.cmake =================================================================== RCS file: /cvsroot/VTK/VTK/CMake/vtkDetermineCompilerFlags.cmake,v retrieving revision 1.5 diff -r1.5 vtkDetermineCompilerFlags.cmake 20d19 < IF(CMAKE_COMPILER_IS_GNUCXX) 21a21,25 > IF(CMAKE_COMPILER_IS_GNUCXX) > # Quiet warning about strstream deprecation if appropriate. > IF(VTK_INCLUDE_STRSTREAM_HEADERS OR NOT VTK_LEGACY_REMOVE) > SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -Wno-deprecated") > ENDIF(VTK_INCLUDE_STRSTREAM_HEADERS OR NOT VTK_LEGACY_REMOVE) |
|
(0010651) Sean McBride (developer) 2008-02-26 15:55 |
Hopefully fixed for real this time! :) /cvsroot/VTK/VTK/CMake/vtkDetermineCompilerFlags.cmake,v <-- vtkDetermineCompilerFlags.cmake new revision: 1.6; previous revision: 1.5 |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2007-08-07 13:07 | Sean McBride | Assigned To | Mathieu Malaterre => David Cole |
| 2007-08-15 14:36 | David Cole | Note Added: 0008472 | |
| 2007-08-15 14:38 | David Cole | Status | tabled => @80@ |
| 2007-08-15 14:38 | David Cole | Resolution | suspended => fixed |
| 2008-02-07 11:36 | Sean McBride | Status | @80@ => @20@ |
| 2008-02-07 11:36 | Sean McBride | Resolution | fixed => reopened |
| 2008-02-07 11:36 | Sean McBride | Note Added: 0010423 | |
| 2008-02-25 11:13 | Sean McBride | Status | @20@ => @80@ |
| 2008-02-25 11:13 | Sean McBride | Resolution | reopened => fixed |
| 2008-02-25 11:13 | Sean McBride | Note Added: 0010641 | |
| 2008-02-25 11:13 | Sean McBride | Status | @80@ => closed |
| 2008-02-26 10:01 | Sean McBride | Assigned To | David Cole => Sean McBride |
| 2008-02-26 10:01 | Sean McBride | Status | closed => @20@ |
| 2008-02-26 10:01 | Sean McBride | Resolution | fixed => reopened |
| 2008-02-26 10:01 | Sean McBride | Note Added: 0010649 | |
| 2008-02-26 10:44 | Sean McBride | Note Added: 0010650 | |
| 2008-02-26 10:44 | Sean McBride | Status | @20@ => tabled |
| 2008-02-26 10:44 | Sean McBride | Assigned To | Sean McBride => David Cole |
| 2008-02-26 15:55 | Sean McBride | Status | tabled => @80@ |
| 2008-02-26 15:55 | Sean McBride | Resolution | reopened => fixed |
| 2008-02-26 15:55 | Sean McBride | Note Added: 0010651 | |
| 2008-02-28 12:51 | Sean McBride | Status | @80@ => closed |
| 2008-09-25 08:22 | Sean McBride | Relationship added | related to 0007734 |
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |