diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-14 20:37:36 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-14 20:37:36 (GMT) |
commit | 24ab29b882548d9eceeb20d3ecbc5b9cc918bb7c (patch) | |
tree | 8b14c406c768e3fe8a934e9ed9ba95a35b91cdaf /Source/cmGeneratorTarget.cxx | |
parent | ab8b77dd33e9a13551af402b2cf7ee3aaa5486b8 (diff) | |
download | CMake-24ab29b882548d9eceeb20d3ecbc5b9cc918bb7c.zip CMake-24ab29b882548d9eceeb20d3ecbc5b9cc918bb7c.tar.gz CMake-24ab29b882548d9eceeb20d3ecbc5b9cc918bb7c.tar.bz2 |
Prefer istringstream and ostringstream over stringstream.
Use istringsream for parsing, ostringstream for generation.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index de02395..5f4b074 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1527,7 +1527,7 @@ public: if (item.find("::") != std::string::npos) { bool noMessage = false; cmake::MessageType messageType = cmake::FATAL_ERROR; - std::stringstream e; + std::ostringstream e; switch (this->Target->GetLocalGenerator()->GetPolicyStatus( cmPolicies::CMP0028)) { case cmPolicies::WARN: { @@ -1628,7 +1628,7 @@ public: if (this->Preferred.empty()) { return ""; } else if (this->Preferred.size() > 1) { - std::stringstream e; + std::ostringstream e; e << "Target " << this->Target->GetName() << " contains multiple languages with the highest linker preference" << " (" << this->Preference << "):\n"; |