From cb1caf560b7f28ac5e1579c6658c2f7d3b740547 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Fri, 20 Feb 2015 09:55:07 +0100 Subject: [PATCH] Fix package build error --- lib/cli/troubleshootcollectcommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/troubleshootcollectcommand.cpp b/lib/cli/troubleshootcollectcommand.cpp index 6ffc76e38..3817e769a 100644 --- a/lib/cli/troubleshootcollectcommand.cpp +++ b/lib/cli/troubleshootcollectcommand.cpp @@ -357,9 +357,9 @@ void TroubleshootCollectCommand::CheckObjectFile(const String& objectfile, InfoL bool first = true; - std::ofstream badstream; + std::stringstream sStream; - ObjectListUtility::PrintObject(badstream, first, message, type_count, "", ""); + ObjectListUtility::PrintObject(sStream, first, message, type_count, "", ""); Dictionary::Ptr object = JsonDecode(message); Dictionary::Ptr properties = object->Get("properties"); -- 2.40.0