Skip to content

Commit

Permalink
issue #6442 C++: Trailing return type syntax + void
Browse files Browse the repository at this point in the history
corrected typo
  • Loading branch information
albert-github committed Sep 8, 2020
1 parent 74d43fa commit d656764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memberdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4050,7 +4050,7 @@ void MemberDefImpl::warnIfUndocumented() const
warnIfUndocumentedParams();
}
}
static QCString stripTrailngReturn(const QCString trailRet)
static QCString stripTrailingReturn(const QCString trailRet)
{
QCString ret = trailRet;

Expand All @@ -4077,7 +4077,7 @@ void MemberDefImpl::detectUndocumentedParams(bool hasParamCommand,bool hasReturn
const ArgumentList &defArgList=isDocsForDefinition() ? argumentList() : declArgumentList();
if (!defArgList.trailingReturnType().isEmpty())
{
QCString strippedTrailingReturn = stripTrailngReturn(defArgList.trailingReturnType());
QCString strippedTrailingReturn = stripTrailingReturn(defArgList.trailingReturnType());
isVoidReturn = (strippedTrailingReturn=="void") || (strippedTrailingReturn.right(5)==" void");
}
}
Expand Down

0 comments on commit d656764

Please sign in to comment.