ttsnoop: drag into a modern C++ century
[oweals/cde.git] / cde / programs / ttsnoop / patternProps_stubs.C.src
index 4ae300ccb708ed13e3c9eb00d1aec722cd7403d6..e49d8f2a825478a30378c7a19a91e7aaf45f41f7 100644 (file)
  *** Add include files, types, macros, externs, and user functions here.
  ***/
 
-#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
-#include <strstream>
-#else
-#include <strstream.h>
-#endif
+#include <sstream>
 
 #include <Tt/tttk.h>
 #include "DtTt.h"
@@ -372,12 +368,11 @@ DtTtPatternWidgetCreate(
                }
        }
 
-       std::ostrstream labelStream;
+       std::ostringstream labelStream;
        labelStream << "Tt_pattern " << (void *)pat << ends;
        XtVaSetValues( instance->patternProps,
-                      XmNtitle, labelStream.str(),
+                      XmNtitle, labelStream.str().c_str(),
                       NULL );
-       delete labelStream.str();
 
        _DtTtPatternWidgetUpdate( instance, pat );