aboutsummaryrefslogtreecommitdiffstats
path: root/tests/incorrect-emit
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2016-12-21 23:24:21 +0000
committerSergio Martins <smartins@kde.org>2016-12-21 23:25:50 +0000
commit789c9eb0cd108ddcc839815901462e12cd60c825 (patch)
treec8d1db288da8f263fb61ee48ca94059ef59e1f9d /tests/incorrect-emit
parent234daa48b88a93c12a7e8d08e5ab8b83ca02099e (diff)
incorrect-emit: Don't warn about emit in CTOR if inside a lambda
The emit can be inside a lambda, which is fine, since it probably will be emitted later and not when CTOR is being run. CCBUG: 373947
Diffstat (limited to 'tests/incorrect-emit')
-rw-r--r--tests/incorrect-emit/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/incorrect-emit/main.cpp b/tests/incorrect-emit/main.cpp
index 4335623c..599b6089 100644
--- a/tests/incorrect-emit/main.cpp
+++ b/tests/incorrect-emit/main.cpp
@@ -55,4 +55,5 @@ MyObject::MyObject()
emit sig(); // Warning
emit another->sig(); // OK;
emit memberFunc()->sig(); // OK;
+ [this]{ emit sig(); }; // OK
}