Commit e3192ab3 authored by Kohei Yoshida's avatar Kohei Yoshida

Let's consistently use ';' as separators in ostream outputs.

parent 35b3e96e
Pipeline #38360380 passed with stage
in 4 minutes and 37 seconds
......@@ -287,7 +287,7 @@ abs_range_t::abs_range_t(sheet_t _sheet, row_t _row, col_t _col, row_t _row_span
if (_row_span < 1 || _col_span < 1)
{
std::ostringstream os;
os << "abs_range_t: invalid span (row=" << _row_span << ", col=" << _col_span << ")";
os << "abs_range_t: invalid span (row=" << _row_span << "; col=" << _col_span << ")";
throw std::range_error(os.str());
}
}
......@@ -496,15 +496,15 @@ bool operator!=(const range_t& left, const range_t& right)
std::ostream& operator<<(std::ostream& os, const abs_address_t& addr)
{
os << "(sheet:" << addr.sheet << ",row:" << addr.row << ",column:" << addr.column << ")";
os << "(sheet:" << addr.sheet << "; row:" << addr.row << "; column:" << addr.column << ")";
return os;
}
std::ostream& operator<<(std::ostream& os, const address_t& addr)
{
os << "(sheet:" << addr.sheet << " " << (addr.abs_sheet?"abs":"rel")
<< ",row:" << addr.row << " " << (addr.abs_row?"abs":"rel")
<<",column:" << addr.column << " " << (addr.abs_column?"abs":"rel") << ")";
<< "; row:" << addr.row << " " << (addr.abs_row?"abs":"rel")
<<"; column:" << addr.column << " " << (addr.abs_column?"abs":"rel") << ")";
return os;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment