]> granicus.if.org Git - icinga2/commitdiff
Fix package build error
authorJean Flach <jean-marcel.flach@netways.de>
Fri, 20 Feb 2015 08:55:07 +0000 (09:55 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Fri, 20 Feb 2015 08:55:07 +0000 (09:55 +0100)
lib/cli/troubleshootcollectcommand.cpp

index 6ffc76e3818f3628023e4f40556046029416e37a..3817e769aaa4a7e495a345d8a5c52c18835b0524 100644 (file)
@@ -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");