BUG: Attempt to fix ostrstream::str() wrapper for broken platforms.
This commit is contained in:
parent
d1879a77e8
commit
eb5b8e3d24
|
@ -180,8 +180,8 @@ public:
|
|||
{
|
||||
cmStrStreamCleanup cleanup(*this);
|
||||
cmStrStreamCleanup::IgnoreUnusedVariable(cleanup);
|
||||
const char* ptr = this->Superclass::str();
|
||||
return std::string(ptr, ptr+this->pcount());
|
||||
int pcount = this->pcount();
|
||||
return std::string(this->Superclass::str(), pcount);
|
||||
}
|
||||
private:
|
||||
cmStringStream(const cmStringStream&);
|
||||
|
|
Loading…
Reference in New Issue