Skip to content

Commit 997d86f

Browse files
committed
Fixed coverity warning (CID 465666)
1 parent 126087b commit 997d86f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/docnode.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4546,12 +4546,10 @@ int DocPara::handleCommand(char cmdChar, const QCString &cmdName)
45464546
break;
45474547
case CMD_SETSCOPE:
45484548
{
4549-
QCString scope;
45504549
parser()->tokenizer.setStateSetScope();
45514550
(void)parser()->tokenizer.lex();
4552-
scope = parser()->context.token->name;
4553-
parser()->context.context = scope;
4554-
//printf("Found scope='%s'\n",qPrint(scope));
4551+
parser()->context.context = parser()->context.token->name;
4552+
//printf("Found scope='%s'\n",qPrint(parser()->context.context));
45554553
parser()->tokenizer.setStatePara();
45564554
}
45574555
break;

src/docparser.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,12 +1382,10 @@ bool DocParser::defaultHandleToken(DocNodeVariant *parent,int tok, DocNodeList &
13821382
break;
13831383
case CMD_SETSCOPE:
13841384
{
1385-
QCString scope;
13861385
tokenizer.setStateSetScope();
13871386
(void)tokenizer.lex();
1388-
scope = context.token->name;
1389-
context.context = scope;
1390-
//printf("Found scope='%s'\n",qPrint(scope));
1387+
context.context = context.token->name;
1388+
//printf("Found scope='%s'\n",qPrint(context.context));
13911389
tokenizer.setStatePara();
13921390
}
13931391
break;

0 commit comments

Comments
 (0)