Changing indent level of braces

Using Allman indent style
This commit is contained in:
Timothy McCallum 2017-05-04 08:24:03 +10:00 committed by GitHub
parent 0dcdb01bf6
commit 4c5e5f3b2c

View File

@ -15,12 +15,12 @@ int main()
auto ws = wb.active_sheet(); auto ws = wb.active_sheet();
clog << "Processing spread sheet" << endl; clog << "Processing spread sheet" << endl;
for (auto row : ws.rows(false)) for (auto row : ws.rows(false))
{
for (auto cell : row)
{ {
for (auto cell : row) clog << cell.to_string() << endl;
{
clog << cell.to_string() << endl;
}
} }
}
clog << "Processing complete" << endl; clog << "Processing complete" << endl;
return 0; return 0;
} }
@ -69,27 +69,27 @@ int main()
clog << "Processing spread sheet" << endl; clog << "Processing spread sheet" << endl;
clog << "Creating a single vector which stores the whole spread sheet" << endl; clog << "Creating a single vector which stores the whole spread sheet" << endl;
vector< vector<string> > theWholeSpreadSheet; vector< vector<string> > theWholeSpreadSheet;
for (auto row : ws.rows(false)) for (auto row : ws.rows(false))
{ {
clog << "Creating a fresh vector for just this row in the spread sheet" << endl; clog << "Creating a fresh vector for just this row in the spread sheet" << endl;
vector<string> aSingleRow; vector<string> aSingleRow;
for (auto cell : row) for (auto cell : row)
{ {
clog << "Adding this cell to the row" << endl; clog << "Adding this cell to the row" << endl;
aSingleRow.push_back(cell.to_string()); aSingleRow.push_back(cell.to_string());
} }
clog << "Adding this entire row to the vector which stores the whole spread sheet" << endl; clog << "Adding this entire row to the vector which stores the whole spread sheet" << endl;
theWholeSpreadSheet.push_back(aSingleRow); theWholeSpreadSheet.push_back(aSingleRow);
} }
clog << "Processing complete" << endl; clog << "Processing complete" << endl;
clog << "Reading the vector and printing output to the screen" << endl; clog << "Reading the vector and printing output to the screen" << endl;
for (int rowInt = 0; rowInt < theWholeSpreadSheet.size(); rowInt++) for (int rowInt = 0; rowInt < theWholeSpreadSheet.size(); rowInt++)
{
for (int colInt = 0; colInt < theWholeSpreadSheet.at(rowInt).size(); colInt++)
{ {
for (int colInt = 0; colInt < theWholeSpreadSheet.at(rowInt).size(); colInt++) cout << theWholeSpreadSheet.at(rowInt).at(colInt) << endl;
{ }
cout << theWholeSpreadSheet.at(rowInt).at(colInt) << endl; }
}
}
return 0; return 0;
} }
``` ```