diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-11 08:41:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-11 09:48:17 +0200 |
commit | 4712396b3b6c61b7a54ca631790561eeea5ffc93 (patch) | |
tree | 5a91e02a5e7ce630c52dbd0a349df15bb7c4813d /compilerplugins | |
parent | loplugin: defaultparams (diff) | |
download | core-4712396b3b6c61b7a54ca631790561eeea5ffc93.tar.gz core-4712396b3b6c61b7a54ca631790561eeea5ffc93.zip |
loplugin: defaultparams
Change-Id: I906912f29448bfc72e8139546aa09525c959867f
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/defaultparams.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/defaultparams.cxx b/compilerplugins/clang/defaultparams.cxx index 173cc5e11604..76cbeed2abaa 100644 --- a/compilerplugins/clang/defaultparams.cxx +++ b/compilerplugins/clang/defaultparams.cxx @@ -61,8 +61,8 @@ bool DefaultParams::VisitCallExpr(const CallExpr * callExpr) { report( DiagnosticsEngine::Warning, "not necessary to pass this argument, it defaults to the same value", - callExpr->getSourceRange().getBegin()) - << callExpr->getSourceRange(); + arg->getSourceRange().getBegin()) + << arg->getSourceRange(); report( DiagnosticsEngine::Warning, "default method parameter declaration here", |