c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp
changeset 14 d81d0a119e76
parent 12 fde958908539
child 16 65f51abd5fb8
     1.1 --- a/c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp	Mon May 04 00:28:47 2015 +0200
     1.2 +++ b/c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp	Mon May 04 00:29:17 2015 +0200
     1.3 @@ -15,10 +15,10 @@
     1.4  
     1.5  	output << "<outputModule>" << endl;
     1.6  
     1.7 -	for_each(args.begin(), args.end(), [command, fgGreen, fgReset](string s) {
     1.8 -		cout << fgGreen << command << fgReset << ": " << s << endl;
     1.9 +	for_each(args.begin(), args.end(), [&output, command, fgGreen, fgReset](string s) {
    1.10 +		output << fgGreen << command << fgReset << ": " << s << endl;
    1.11  	});
    1.12 -	
    1.13 +
    1.14  	output << "</outputModule>" << endl;
    1.15  }
    1.16