Revision: 22709
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22709
Author:   campbellbarton
Date:     2009-08-22 19:19:31 +0200 (Sat, 22 Aug 2009)

Log Message:
-----------
[#19226] (2.5) blender uses deprecated 'strstream' STL class, causes warnings 
with gcc
thanks to Mauro Toffanin (equilibrium)

This is the only place where strstream were used.

Modified Paths:
--------------
    branches/blender2.5/blender/source/gameengine/VideoTexture/Exception.cpp

Modified: 
branches/blender2.5/blender/source/gameengine/VideoTexture/Exception.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/VideoTexture/Exception.cpp    
2009-08-22 17:11:36 UTC (rev 22708)
+++ branches/blender2.5/blender/source/gameengine/VideoTexture/Exception.cpp    
2009-08-22 17:19:31 UTC (rev 22709)
@@ -21,7 +21,7 @@
 */
 
 
-#include <strstream>
+#include <sstream>
 #include <fstream>
 
 #include <PyObjectPlus.h>
@@ -170,11 +170,11 @@
                // length of result code
                const size_t rsltSize = 11;
                // delimit description
-               const char delimRslt[] = ": ";
+               //const char delimRslt[] = ": ";
                // set text of description
                char rsltTxt[rsltSize];
-               std::ostrstream os(rsltTxt, rsltSize);
-               os << std::hex << m_hRslt << delimRslt << '\0';
+               std::ostringstream os;
+               os << std::hex << m_hRslt << ": " << '\0';
                // copy result to description
                m_desc.insert(0, rsltTxt);
                // copy exception description to last exception string


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to