[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:
parent
b5aac499d5
commit
d157bf8522
@ -124,7 +124,7 @@ namespace std
|
||||
}
|
||||
|
||||
virtual streambuf*
|
||||
setbuf(char_type* s, streamsize n)
|
||||
setbuf(char_type* s, int n)
|
||||
{
|
||||
if (n != 0)
|
||||
{
|
||||
@ -226,7 +226,7 @@ namespace std
|
||||
char_type* stream;
|
||||
streamsize stream_len;
|
||||
};
|
||||
|
||||
|
||||
class istringstream : public istream {
|
||||
public:
|
||||
typedef char char_type;
|
||||
@ -263,7 +263,7 @@ namespace std
|
||||
private:
|
||||
stringbuf sb;
|
||||
};
|
||||
|
||||
|
||||
class ostringstream : public ostream {
|
||||
public:
|
||||
typedef char char_type;
|
||||
@ -300,7 +300,7 @@ namespace std
|
||||
private:
|
||||
stringbuf sb;
|
||||
};
|
||||
|
||||
|
||||
class stringstream : public iostream {
|
||||
public:
|
||||
typedef char char_type;
|
||||
|
Loading…
Reference in New Issue
Block a user