@@ -46,7 +46,10 @@ const Rows& Term::Window::rows() const noexcept { return m_size.rows(); }
4646void Term::Window::set_char (const std::size_t & column, const std::size_t & row, const char32_t & character)
4747{
4848 if (insideWindow (column, row)) { m_chars[index (column, row)] = character; }
49- else { throw Term::Exception (" set_char(): (x,y) out of bounds" ); }
49+ else
50+ {
51+ throw Term::Exception (" set_char(): (x,y) out of bounds" );
52+ }
5053}
5154
5255void Term::Window::set_fg_reset (const std::size_t & column, const std::size_t & row)
@@ -91,7 +94,10 @@ void Term::Window::set_h(const std::size_t& new_h)
9194 m_style.insert (m_style.end (), dc, Style::Reset);
9295 m_size = {Term::Columns (m_size.columns ()), Term::Rows (new_h)};
9396 }
94- else { throw Term::Exception (" Shrinking height not supported." ); }
97+ else
98+ {
99+ throw Term::Exception (" Shrinking height not supported." );
100+ }
95101}
96102
97103void Term::Window::print_str (const std::size_t & x, const std::size_t & y, const std::string& s, const std::size_t & indent, bool move_cursor)
@@ -109,12 +115,18 @@ void Term::Window::print_str(const std::size_t& x, const std::size_t& y, const s
109115 {
110116 for (std::size_t j = 0 ; j < indent; ++j) { set_char (x + j, ypos, ' .' ); }
111117 }
112- else { return ; }
118+ else
119+ {
120+ return ;
121+ }
113122 }
114123 else
115124 {
116125 if (insideWindow (xpos, ypos)) { set_char (xpos, y, i); }
117- else { return ; }
126+ else
127+ {
128+ return ;
129+ }
118130 ++xpos;
119131 }
120132 }
0 commit comments