We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d89449 commit c04fd99Copy full SHA for c04fd99
src/csgrep.cc
@@ -123,16 +123,20 @@ class EvtCounter: public StatWriter {
123
virtual void flush() {
124
for (TMap::const_reference item : cnt_) {
125
using namespace std;
126
+ const TKey &key = item.first;
127
+
128
+ // save iostream flags
129
const ios_base::fmtflags oldFlags = cout.flags();
130
const int oldWidth = cout.width();
131
132
cout << fixed << setw(7) << item.second;
133
+ cout << "\t" << left << setw(32) << key.first;
134
135
+ // restore iostream flags
136
cout.width(oldWidth);
137
cout.flags(oldFlags);
138
- const TKey &key = item.first;
- cout << "\t" << key.first
- << "\t" << key.second
- << "\n";
139
+ cout << "\t" << key.second << "\n";
140
}
141
142
};
0 commit comments