mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
getting obsolete: added #error "use CWPro4 version"
This commit is contained in:
parent
48f95bb1e6
commit
295ee345ce
@ -17,6 +17,9 @@
|
||||
* Netscape Communications Corporation. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#error "You should now include <strstream.h> from CWPro4"
|
||||
|
||||
#include "xp_mcom.h"
|
||||
#include <sstream.h>
|
||||
|
||||
typedef basic_ostringstream<char, char_traits<char> > template_ostrstream;
|
||||
@ -24,5 +27,10 @@ typedef basic_ostringstream<char, char_traits<char> > template_ostrstream;
|
||||
class ostrstream : public template_ostrstream
|
||||
{
|
||||
public:
|
||||
inline const char* str() const {return template_ostrstream::str().c_str();};
|
||||
inline const char* str() const
|
||||
{
|
||||
string astr = template_ostrstream::str();
|
||||
const char* cstr = astr.c_str();
|
||||
return XP_STRDUP(cstr);
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user