diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 5f98d376a91..c8de5c4fd3d 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1766,7 +1766,7 @@ static bool isCastToVoid(const Variable* var) void CheckOtherImpl::checkConstVariable() { - if ((!mSettings.severity.isEnabled(Severity::style) || mTokenizer->isC()) && !mSettings.isPremiumEnabled("constVariable")) + if ((!mSettings.severity.isEnabled(Severity::style) || mTokenizer->isC()) && !mSettings.isPremiumEnabled("constVariable") && !mSettings.isPremiumEnabled("constParameterReference")) return; logChecker("CheckOther::checkConstVariable"); // style,c++