diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-12-14 16:41:51 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-12-14 16:41:51 (GMT) |
commit | 55af790ebfc4d95c57be817eb1b02fa254220602 (patch) | |
tree | d16a55c49395d4e5177258bb63f19dd8854dd74d /Source/kwsys/kwsys_ios_sstream.h.in | |
parent | db116b94e4a699e1b93153ce865a6f79aa401d65 (diff) | |
download | CMake-55af790ebfc4d95c57be817eb1b02fa254220602.zip CMake-55af790ebfc4d95c57be817eb1b02fa254220602.tar.gz CMake-55af790ebfc4d95c57be817eb1b02fa254220602.tar.bz2 |
BUG: Remove stringstream implementation, this was a wrong interface anyway.
Diffstat (limited to 'Source/kwsys/kwsys_ios_sstream.h.in')
-rw-r--r-- | Source/kwsys/kwsys_ios_sstream.h.in | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Source/kwsys/kwsys_ios_sstream.h.in b/Source/kwsys/kwsys_ios_sstream.h.in index f63a60d..ccf9113 100644 --- a/Source/kwsys/kwsys_ios_sstream.h.in +++ b/Source/kwsys/kwsys_ios_sstream.h.in @@ -64,7 +64,6 @@ using @KWSYS_NAMESPACE@_ios_namespace::ostream; using @KWSYS_NAMESPACE@_ios_namespace::istream; using @KWSYS_NAMESPACE@_ios_namespace::istrstream; using @KWSYS_NAMESPACE@_ios_namespace::ostrstream; -using @KWSYS_NAMESPACE@_ios_namespace::strstream; using @KWSYS_NAMESPACE@_ios_namespace::ios; using @KWSYS_NAMESPACE@_ios_namespace::endl; using @KWSYS_NAMESPACE@_ios_namespace::ends; @@ -92,9 +91,9 @@ public: { ostringstream_cleanup cleanup(*this); ostringstream_cleanup::IgnoreUnusedVariable(cleanup); - int count = this->pcount(); + int pcount = this->pcount(); const char* ptr = this->Superclass::str(); - return kwsys_stl::string(ptr?ptr:"", count); + return kwsys_stl::string(ptr?ptr:"", pcount); } void str(const kwsys_stl::string& s) { @@ -135,17 +134,6 @@ private: # pragma warning (pop) #endif -class stringstream: public istringstream, public ostringstream -{ -public: - stringstream():istringstream(),ostringstream() {} - kwsys_stl::string str() const { return istringstream::str(); } - kwsys_stl::string str() { return ostringstream::str(); } -private: - stringstream(const stringstream&); - void operator=(const stringstream&); -}; - } // namespace @KWSYS_NAMESPACE@_ios #endif |