diff options
author | Sergio Martins <iamsergio@gmail.com> | 2017-11-15 16:28:38 +0000 |
---|---|---|
committer | Sergio Martins <iamsergio@gmail.com> | 2017-11-15 16:28:38 +0000 |
commit | ad1efd24b4183e093247a6b788f9cc9e2c79e403 (patch) | |
tree | f85f87e31939c84199b8185f8f4751a8762b2e7e /src | |
parent | 554914dba7ad6db634ce7b0e2bb117c6f8167958 (diff) |
const-signal-or-slot: Don't print an error when connecting to lambda
returning nullptr is enough
BUG: 386940
Diffstat (limited to 'src')
-rw-r--r-- | src/QtUtils.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/QtUtils.cpp b/src/QtUtils.cpp index 6054d34f..8a72392b 100644 --- a/src/QtUtils.cpp +++ b/src/QtUtils.cpp @@ -270,10 +270,8 @@ CXXMethodDecl *QtUtils::pmfFromConnect(CallExpr *funcCall, int argIndex) return nullptr; } - if (argIndex >= numArgs) { - llvm::errs() << "error, invalid argIndex " << argIndex << " number of arguments " << numArgs << "\n"; + if (argIndex >= numArgs) return nullptr; - } Expr *expr = funcCall->getArg(argIndex); return pmfFromUnary(expr); |