aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level0/README-lambda-in-connect.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/level0/README-lambda-in-connect.md')
-rw-r--r--src/checks/level0/README-lambda-in-connect.md13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/checks/level0/README-lambda-in-connect.md b/src/checks/level0/README-lambda-in-connect.md
deleted file mode 100644
index bfdefec4..00000000
--- a/src/checks/level0/README-lambda-in-connect.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# lambda-in-connect
-
-Warns when a lambda inside a connect captures local variables by reference.
-This usually results in a crash since the lambda might get called after the captured variable went out of scope.
-
-#### Example:
-````
- int a;
- connect(obj, &MyObj::mySignal, [&a]{ ... });
-````
-Although it's dangerous to capture by reference in other situations too, this check only warns for
-connects, otherwise it would generate false-positives in legitimate situations where you only
-use the lambda before going out of scope.