[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 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31262 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+4
-4
@@ -124,7 +124,7 @@ namespace std
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual streambuf*
|
virtual streambuf*
|
||||||
setbuf(char_type* s, streamsize n)
|
setbuf(char_type* s, int n)
|
||||||
{
|
{
|
||||||
if (n != 0)
|
if (n != 0)
|
||||||
{
|
{
|
||||||
@@ -226,7 +226,7 @@ namespace std
|
|||||||
char_type* stream;
|
char_type* stream;
|
||||||
streamsize stream_len;
|
streamsize stream_len;
|
||||||
};
|
};
|
||||||
|
|
||||||
class istringstream : public istream {
|
class istringstream : public istream {
|
||||||
public:
|
public:
|
||||||
typedef char char_type;
|
typedef char char_type;
|
||||||
@@ -263,7 +263,7 @@ namespace std
|
|||||||
private:
|
private:
|
||||||
stringbuf sb;
|
stringbuf sb;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ostringstream : public ostream {
|
class ostringstream : public ostream {
|
||||||
public:
|
public:
|
||||||
typedef char char_type;
|
typedef char char_type;
|
||||||
@@ -300,7 +300,7 @@ namespace std
|
|||||||
private:
|
private:
|
||||||
stringbuf sb;
|
stringbuf sb;
|
||||||
};
|
};
|
||||||
|
|
||||||
class stringstream : public iostream {
|
class stringstream : public iostream {
|
||||||
public:
|
public:
|
||||||
typedef char char_type;
|
typedef char char_type;
|
||||||
|
|||||||
Reference in New Issue
Block a user