From d157bf8522d5dc449602bec43f10ecdedc9943cd Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 26 Jun 2009 21:54:46 +0000 Subject: [PATCH] [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 --- headers/cpp/sstream | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/cpp/sstream b/headers/cpp/sstream index 45393b1476..228afc3b8a 100644 --- a/headers/cpp/sstream +++ b/headers/cpp/sstream @@ -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;