According to Linux kernel coding style there should not be multiple assignments on a single line to make code more readable.
Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
}
void TextTable::clear() {
- currow = curcol = 0;
+ currow = 0;
+ curcol = 0;
indent = 0;
row.clear();
// reset widths to heading widths
pad(string s, int width, TextTable::Align align)
{
int lpad, rpad;
- lpad = rpad = 0;
+ lpad = 0;
+ rpad = 0;
switch (align) {
case TextTable::LEFT:
rpad = width - s.length();