[Haiku-commits] r31262 - haiku/trunk/headers/cpp
zooey at BerliOS
zooey at mail.berlios.de
Fri Jun 26 23:54:46 CEST 2009
Author: zooey
Date: 2009-06-26 23:54:46 +0200 (Fri, 26 Jun 2009)
New Revision: 31262
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31262&view=rev
Modified:
haiku/trunk/headers/cpp/sstream
Log:
[the first commit of this fix was applied to the 32bit-wchar_t-branch instead
of trunk]
Fixed a bug exposed by changes in the locale kit branch:
* the signature of stringbuf::setbuf() wasn't matching the one from streambuf,
which caused the base version to be hidden instead of overridden - leading
to crashes during cleanup of stringstream objects
Modified: haiku/trunk/headers/cpp/sstream
===================================================================
--- haiku/trunk/headers/cpp/sstream 2009-06-26 21:39:54 UTC (rev 31261)
+++ haiku/trunk/headers/cpp/sstream 2009-06-26 21:54:46 UTC (rev 31262)
@@ -124,7 +124,7 @@
}
virtual streambuf*
- setbuf(char_type* s, streamsize n)
+ setbuf(char_type* s, int n)
{
if (n != 0)
{
@@ -226,7 +226,7 @@
char_type* stream;
streamsize stream_len;
};
-
+
class istringstream : public istream {
public:
typedef char char_type;
@@ -263,7 +263,7 @@
private:
stringbuf sb;
};
-
+
class ostringstream : public ostream {
public:
typedef char char_type;
@@ -300,7 +300,7 @@
private:
stringbuf sb;
};
-
+
class stringstream : public iostream {
public:
typedef char char_type;
More information about the Haiku-commits
mailing list