Don't use *_t for our own typedefs

It's reserved by POSIX.

(closes #158 pull request)
This commit is contained in:
Keegan McAllister
2012-04-14 17:39:10 -04:00
committed by Keith Winstein
parent 937882caff
commit cd2d482484
8 changed files with 38 additions and 38 deletions
+4 -4
View File
@@ -322,10 +322,10 @@ void Framebuffer::soft_reset( void )
void Framebuffer::posterize( void )
{
for ( rows_t::iterator i = rows.begin();
for ( rows_type::iterator i = rows.begin();
i != rows.end();
i++ ) {
for ( Row::cells_t::iterator j = i->cells.begin();
for ( Row::cells_type::iterator j = i->cells.begin();
j != i->cells.end();
j++ ) {
j->renditions.posterize();
@@ -340,7 +340,7 @@ void Framebuffer::resize( int s_width, int s_height )
rows.resize( s_height, newrow() );
for ( rows_t::iterator i = rows.begin();
for ( rows_type::iterator i = rows.begin();
i != rows.end();
i++ ) {
i->set_wrap( false );
@@ -540,7 +540,7 @@ void Renditions::posterize( void )
void Row::reset( int background_color )
{
for ( cells_t::iterator i = cells.begin();
for ( cells_type::iterator i = cells.begin();
i != cells.end();
i++ ) {
i->reset( background_color );
+4 -4
View File
@@ -106,8 +106,8 @@ namespace Terminal {
class Row {
public:
typedef std::vector<Cell> cells_t;
cells_t cells;
typedef std::vector<Cell> cells_type;
cells_type cells;
Row( size_t s_width, int background_color )
: cells( s_width, Cell( background_color ) )
@@ -224,8 +224,8 @@ namespace Terminal {
class Framebuffer {
private:
typedef std::deque<Row> rows_t;
rows_t rows;
typedef std::deque<Row> rows_type;
rows_type rows;
std::deque<wchar_t> icon_name;
std::deque<wchar_t> window_title;
unsigned int bell_count;