Use shared_ptr and references for Actions.

This slows terminal emulation slightly.
This commit is contained in:
John Hood
2017-05-11 01:22:12 -04:00
parent c6c7f09954
commit 42d2b5d029
13 changed files with 104 additions and 113 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ namespace Terminal {
actions(), input_history(), echo_ack( 0 ) {}
std::string act( const std::string &str );
std::string act( const Parser::Action *act );
std::string act( const Parser::Action &act );
const Framebuffer & get_fb( void ) const { return terminal.get_fb(); }
void reset_input( void ) { parser.reset_input(); }