diff options
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index 1337a190..eb1fadb3 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -53,23 +53,12 @@ struct Token ArgExpand, CommandSeparator }; - Token() : m_type(Type::Raw) {} - Token(Type type, ByteCount b, ByteCount e, DisplayCoord coord, String str = "") - : m_type(type), m_begin(b), m_end(e), m_coord(coord), m_content(std::move(str)) {} - - Type type() const { return m_type; } - ByteCount begin() const { return m_begin; } - ByteCount end() const { return m_end; } - DisplayCoord coord() const { return m_coord; } - const String& content() const { return m_content; } - -private: - Type m_type; - ByteCount m_begin; - ByteCount m_end; - DisplayCoord m_coord; - String m_content; + Type type; + ByteCount begin; + ByteCount end; + DisplayCoord coord; + String content; }; using TokenList = Vector<Token>; |
