From 7f81c03e3ae4622311e26fe7b053f17867a45d3a Mon Sep 17 00:00:00 2001 From: simransinghal Date: Tue, 20 Mar 2018 23:27:51 +0530 Subject: [PATCH] common: Remove multiple assignment 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 --- src/common/TextTable.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/TextTable.cc b/src/common/TextTable.cc index 3c09fded605bb..c94719a9589b5 100644 --- a/src/common/TextTable.cc +++ b/src/common/TextTable.cc @@ -24,7 +24,8 @@ void TextTable::define_column(const string &heading, } void TextTable::clear() { - currow = curcol = 0; + currow = 0; + curcol = 0; indent = 0; row.clear(); // reset widths to heading widths @@ -45,7 +46,8 @@ static string 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(); -- 2.39.5