@@ -3116,10 +3116,9 @@ static void subrHandleCommentBlock(yyscan_t yyscanner,const QCString &doc,bool b
31163116 yyextra->current->inbodyDocs = "";
31173117
31183118 // strip \\param or @param, so we can do some extra checking. We will add it later on again.
3119- if (!loc_doc.stripPrefix("\\param") &&
3120- !loc_doc.stripPrefix("@param")
3121- ) (void)loc_doc; // Do nothing work has been done by stripPrefix; (void)loc_doc: to overcome 'empty controlled statement' warning
3122- loc_doc.stripWhiteSpace();
3119+ if (loc_doc.stripPrefix("\\param") ||
3120+ loc_doc.stripPrefix("@param")
3121+ ) loc_doc = loc_doc.stripWhiteSpace();
31233122
31243123 // direction as defined with the declaration of the parameter
31253124 int dir1 = yyextra->modifiers[yyextra->current_root][yyextra->argName.lower().str()].direction;
@@ -3220,12 +3219,11 @@ static void subrHandleCommentBlockResult(yyscan_t yyscanner,const QCString &doc,
32203219 yyextra->current->inbodyDocs = "";
32213220
32223221 // strip \\returns or @returns. We will add it later on again.
3223- if (!loc_doc.stripPrefix("\\returns") &&
3224- !loc_doc.stripPrefix("\\return") &&
3225- !loc_doc.stripPrefix("@returns") &&
3226- !loc_doc.stripPrefix("@return")
3227- ) (void)loc_doc; // Do nothing work has been done by stripPrefix; (void)loc_doc: to overcome 'empty controlled statement' warning
3228- loc_doc.stripWhiteSpace();
3222+ if (loc_doc.stripPrefix("\\returns") ||
3223+ loc_doc.stripPrefix("\\return") ||
3224+ loc_doc.stripPrefix("@returns") ||
3225+ loc_doc.stripPrefix("@return")
3226+ ) loc_doc = loc_doc.stripWhiteSpace();
32293227
32303228 if (!loc_doc.isEmpty() && (loc_doc.lower() != yyextra->argName.lower()))
32313229 {
0 commit comments