More const correctness
This commit is contained in:
+17
-17
@@ -14,19 +14,19 @@
|
||||
|
||||
namespace Terminal {
|
||||
class Emulator {
|
||||
friend void Parser::Print::act_on_terminal( Emulator * );
|
||||
friend void Parser::Execute::act_on_terminal( Emulator * );
|
||||
friend void Parser::Clear::act_on_terminal( Emulator * );
|
||||
friend void Parser::Param::act_on_terminal( Emulator * );
|
||||
friend void Parser::Collect::act_on_terminal( Emulator * );
|
||||
friend void Parser::CSI_Dispatch::act_on_terminal( Emulator * );
|
||||
friend void Parser::Esc_Dispatch::act_on_terminal( Emulator * );
|
||||
friend void Parser::OSC_Start::act_on_terminal( Emulator * );
|
||||
friend void Parser::OSC_Put::act_on_terminal( Emulator * );
|
||||
friend void Parser::OSC_End::act_on_terminal( Emulator * );
|
||||
friend void Parser::Print::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::Execute::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::Clear::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::Param::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::Collect::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::CSI_Dispatch::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::Esc_Dispatch::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::OSC_Start::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::OSC_Put::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::OSC_End::act_on_terminal( Emulator * ) const;
|
||||
|
||||
friend void Parser::UserByte::act_on_terminal( Emulator * );
|
||||
friend void Parser::Resize::act_on_terminal( Emulator * );
|
||||
friend void Parser::UserByte::act_on_terminal( Emulator * ) const;
|
||||
friend void Parser::Resize::act_on_terminal( Emulator * ) const;
|
||||
|
||||
private:
|
||||
Framebuffer fb;
|
||||
@@ -34,11 +34,11 @@ namespace Terminal {
|
||||
UserInput user;
|
||||
|
||||
/* action methods */
|
||||
void print( Parser::Print *act );
|
||||
void execute( Parser::Execute *act );
|
||||
void CSI_dispatch( Parser::CSI_Dispatch *act );
|
||||
void Esc_dispatch( Parser::Esc_Dispatch *act );
|
||||
void OSC_end( Parser::OSC_End *act );
|
||||
void print( const Parser::Print *act );
|
||||
void execute( const Parser::Execute *act );
|
||||
void CSI_dispatch( const Parser::CSI_Dispatch *act );
|
||||
void Esc_dispatch( const Parser::Esc_Dispatch *act );
|
||||
void OSC_end( const Parser::OSC_End *act );
|
||||
void resize( size_t s_width, size_t s_height );
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user