Remove BOOST_AUTO from terminalframebuffer.cc
This commit is contained in:
committed by
Keith Winstein
parent
5904d4f5e6
commit
87a5f86794
@@ -16,7 +16,6 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/typeof/typeof.hpp>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -323,8 +322,12 @@ void Framebuffer::soft_reset( void )
|
|||||||
|
|
||||||
void Framebuffer::posterize( void )
|
void Framebuffer::posterize( void )
|
||||||
{
|
{
|
||||||
for ( BOOST_AUTO( i, rows.begin() ); i != rows.end(); i++ ) {
|
for ( rows_t::iterator i = rows.begin();
|
||||||
for ( BOOST_AUTO( j, i->cells.begin() ); j != i->cells.end(); j++ ) {
|
i != rows.end();
|
||||||
|
i++ ) {
|
||||||
|
for ( Row::cells_t::iterator j = i->cells.begin();
|
||||||
|
j != i->cells.end();
|
||||||
|
j++ ) {
|
||||||
j->renditions.posterize();
|
j->renditions.posterize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -337,7 +340,7 @@ void Framebuffer::resize( int s_width, int s_height )
|
|||||||
|
|
||||||
rows.resize( s_height, newrow() );
|
rows.resize( s_height, newrow() );
|
||||||
|
|
||||||
for ( std::deque<Row>::iterator i = rows.begin();
|
for ( rows_t::iterator i = rows.begin();
|
||||||
i != rows.end();
|
i != rows.end();
|
||||||
i++ ) {
|
i++ ) {
|
||||||
i->set_wrap( false );
|
i->set_wrap( false );
|
||||||
@@ -537,7 +540,7 @@ void Renditions::posterize( void )
|
|||||||
|
|
||||||
void Row::reset( int background_color )
|
void Row::reset( int background_color )
|
||||||
{
|
{
|
||||||
for ( std::vector<Cell>::iterator i = cells.begin();
|
for ( cells_t::iterator i = cells.begin();
|
||||||
i != cells.end();
|
i != cells.end();
|
||||||
i++ ) {
|
i++ ) {
|
||||||
i->reset( background_color );
|
i->reset( background_color );
|
||||||
@@ -548,12 +551,16 @@ void Framebuffer::prefix_window_title( const std::deque<wchar_t> &s )
|
|||||||
{
|
{
|
||||||
if ( icon_name == window_title ) {
|
if ( icon_name == window_title ) {
|
||||||
/* preserve equivalence */
|
/* preserve equivalence */
|
||||||
for ( BOOST_AUTO( i, s.rbegin() ); i != s.rend(); i++ ) {
|
for ( std::deque<wchar_t>::const_reverse_iterator i = s.rbegin();
|
||||||
|
i != s.rend();
|
||||||
|
i++ ) {
|
||||||
icon_name.push_front( *i );
|
icon_name.push_front( *i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( BOOST_AUTO( i, s.rbegin() ); i != s.rend(); i++ ) {
|
for ( std::deque<wchar_t>::const_reverse_iterator i = s.rbegin();
|
||||||
|
i != s.rend();
|
||||||
|
i++ ) {
|
||||||
window_title.push_front( *i );
|
window_title.push_front( *i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,8 @@ namespace Terminal {
|
|||||||
|
|
||||||
class Row {
|
class Row {
|
||||||
public:
|
public:
|
||||||
std::vector<Cell> cells;
|
typedef std::vector<Cell> cells_t;
|
||||||
|
cells_t cells;
|
||||||
|
|
||||||
Row( size_t s_width, int background_color )
|
Row( size_t s_width, int background_color )
|
||||||
: cells( s_width, Cell( background_color ) )
|
: cells( s_width, Cell( background_color ) )
|
||||||
@@ -217,7 +218,8 @@ namespace Terminal {
|
|||||||
|
|
||||||
class Framebuffer {
|
class Framebuffer {
|
||||||
private:
|
private:
|
||||||
std::deque<Row> rows;
|
typedef std::deque<Row> rows_t;
|
||||||
|
rows_t rows;
|
||||||
std::deque<wchar_t> icon_name;
|
std::deque<wchar_t> icon_name;
|
||||||
std::deque<wchar_t> window_title;
|
std::deque<wchar_t> window_title;
|
||||||
unsigned int bell_count;
|
unsigned int bell_count;
|
||||||
|
|||||||
Reference in New Issue
Block a user