diff options
author | Sergio Martins <smartins@kde.org> | 2017-02-12 01:10:36 +0000 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2017-02-12 01:10:36 +0000 |
commit | a261683a0fc66f07a14a256a3aac859767e297be (patch) | |
tree | d624a1b769ffb5082c2bd5553abfe0ec7c7542ce /src/QtUtils.cpp | |
parent | e098fe057b9984df3eb630513e90eea0fa471d2a (diff) |
connect-non-signal: Don't fail to detect signals wrapped with a static-cast
BUG: 376137
Diffstat (limited to 'src/QtUtils.cpp')
-rw-r--r-- | src/QtUtils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QtUtils.cpp b/src/QtUtils.cpp index cdaa047a..5e26bb89 100644 --- a/src/QtUtils.cpp +++ b/src/QtUtils.cpp @@ -298,6 +298,8 @@ CXXMethodDecl *QtUtils::pmfFromUnary(Expr *expr) return nullptr; return pmfFromUnary(dyn_cast<UnaryOperator>(call->getArg(1))); + } else if (auto staticCast = dyn_cast<CXXStaticCastExpr>(expr)) { + return pmfFromUnary(staticCast->getSubExpr()); } return nullptr; |