aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/StatusParagraphs.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-12 22:48:52 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-04-12 22:48:52 -0700
commit7069fbbebc750a7c8a64adc8c30269527cbec9bd (patch)
tree94d08f8fd3f04be1167f274c7aab37d0100a693b /toolsrc/src/StatusParagraphs.cpp
parent7326b6c64dc6b04b6d8512f13dddf67bf7498bf1 (diff)
downloadvcpkg-7069fbbebc750a7c8a64adc8c30269527cbec9bd.tar.gz
vcpkg-7069fbbebc750a7c8a64adc8c30269527cbec9bd.zip
[vcpkg] Remove+indirect nearly all uses of iostreams
Diffstat (limited to 'toolsrc/src/StatusParagraphs.cpp')
-rw-r--r--toolsrc/src/StatusParagraphs.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/toolsrc/src/StatusParagraphs.cpp b/toolsrc/src/StatusParagraphs.cpp
index 59e6ee331..132b7d5d4 100644
--- a/toolsrc/src/StatusParagraphs.cpp
+++ b/toolsrc/src/StatusParagraphs.cpp
@@ -59,13 +59,12 @@ namespace vcpkg
return ptr;
}
- std::ostream& vcpkg::operator<<(std::ostream& os, const StatusParagraphs& l)
+ void serialize(const StatusParagraphs& pghs, std::string& out_str)
{
- for (auto& pgh : l.paragraphs)
+ for (auto& pgh : pghs.paragraphs)
{
- os << *pgh;
- os << "\n";
+ serialize(*pgh, out_str);
+ out_str.push_back('\n');
}
- return os;
}
}