From: Arvin Schnell Date: Thu, 18 Apr 2013 16:07:30 +0000 (+0200) Subject: - use iomanip X-Git-Tag: v0.1.3~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24486a8848a46fc4d7d7984eb3175e13108a2c73;p=thirdparty%2Fsnapper.git - use iomanip --- diff --git a/snapper/XAttributes.cc b/snapper/XAttributes.cc index 0bcfc407..6eaa27c9 100644 --- a/snapper/XAttributes.cc +++ b/snapper/XAttributes.cc @@ -28,6 +28,8 @@ #include #include +#include + #include "snapper/AppUtil.h" #include "snapper/Exception.h" #include "snapper/Log.h" @@ -308,20 +310,17 @@ namespace snapper for (xa_del_vec_citer dcit = delete_vec.begin(); dcit != delete_vec.end(); dcit++) { - out.width(3); - out << std::right << delete_lbl << ':' << *dcit << std::endl; + out << std::setw(3) << std::right << delete_lbl << ':' << *dcit << std::endl; } for (xa_mod_vec_citer cit = replace_vec.begin(); cit != replace_vec.end(); cit++) { - out.width(3); - out << std::right << "-+" << ':' << cit->first << std::endl; + out << std::setw(3) << std::right << "-+" << ':' << cit->first << std::endl; } for (xa_mod_vec_citer cit = create_vec.begin(); cit != create_vec.end(); cit++) { - out.width(3); - out << std::right << create_lbl << ':' << cit->first << std::endl; + out << std::setw(3) << std::right << create_lbl << ':' << cit->first << std::endl; } }