diff options
Diffstat (limited to '')
-rw-r--r-- | src/token.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/token.cpp b/src/token.cpp index 0c7bda1..ff04e94 100644 --- a/src/token.cpp +++ b/src/token.cpp | |||
@@ -45,8 +45,9 @@ Token::~Token() | |||
45 | break; | 45 | break; |
46 | 46 | ||
47 | case tVariable: | 47 | case tVariable: |
48 | case tCommand: | ||
49 | case tString: | 48 | case tString: |
49 | case tCmdExtended: | ||
50 | case tCmdParam: | ||
50 | delete sVal; | 51 | delete sVal; |
51 | break; | 52 | break; |
52 | 53 | ||
@@ -64,8 +65,9 @@ Token &Token::operator=( const Token &rhs ) | |||
64 | break; | 65 | break; |
65 | 66 | ||
66 | case tVariable: | 67 | case tVariable: |
67 | case tCommand: | ||
68 | case tString: | 68 | case tString: |
69 | case tCmdExtended: | ||
70 | case tCmdParam: | ||
69 | delete sVal; | 71 | delete sVal; |
70 | break; | 72 | break; |
71 | 73 | ||
@@ -87,7 +89,6 @@ Bu::Formatter &operator<<( Bu::Formatter &f, Token::Type eType ) | |||
87 | { | 89 | { |
88 | case Token::tNumber: return f << "num"; | 90 | case Token::tNumber: return f << "num"; |
89 | case Token::tVariable: return f << "var"; | 91 | case Token::tVariable: return f << "var"; |
90 | case Token::tCommand: return f << "cmd"; | ||
91 | case Token::tPlus: return f << "+"; | 92 | case Token::tPlus: return f << "+"; |
92 | case Token::tMinus: return f << "-"; | 93 | case Token::tMinus: return f << "-"; |
93 | case Token::tDivide: return f << "/"; | 94 | case Token::tDivide: return f << "/"; |