Skip to content

Commit db97a3e

Browse files
committed
Coverity warning
Due to the change from "return" to "result=" the case statements were missing the terminations statement, adding break;
1 parent e6360b1 commit db97a3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/doctokenizer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
TKSPEC(TK_WHITESPACE, 3) \
3535
TKSPEC(TK_LISTITEM, 4) \
3636
TKSPEC(TK_ENDLIST, 5) \
37-
TKSPEC(TK_COMMAND_AT, 6) /*! Command starting with `@`) */ \
37+
TKSPEC(TK_COMMAND_AT, 6) /*! Command starting with `@` */ \
3838
TKSPEC(TK_HTMLTAG, 7) \
3939
TKSPEC(TK_SYMBOL, 8) \
4040
TKSPEC(TK_NEWPARA, 9) \
4141
TKSPEC(TK_RCSTAG, 10) \
4242
TKSPEC(TK_URL, 11) \
43-
TKSPEC(TK_COMMAND_BS, 12) /*! Command starting with `\`) */
43+
TKSPEC(TK_COMMAND_BS, 12) /*! Command starting with `\` */
4444

4545
#define RETVAL_SPECIFICATIONS \
4646
TKSPEC(RetVal_OK, 0x10000) \
@@ -93,7 +93,7 @@ class Token
9393
const char *result = "ERROR";
9494
switch (m_value)
9595
{
96-
#define TKSPEC(x,y) case TokenRetval::x: result = #x;
96+
#define TKSPEC(x,y) case TokenRetval::x: result = #x; break;
9797
TOKEN_SPECIFICATIONS
9898
RETVAL_SPECIFICATIONS
9999
#undef TKSPEC

0 commit comments

Comments
 (0)