aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level1/README-detaching-temporary.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/level1/README-detaching-temporary.md')
-rw-r--r--src/checks/level1/README-detaching-temporary.md7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/checks/level1/README-detaching-temporary.md b/src/checks/level1/README-detaching-temporary.md
deleted file mode 100644
index 60d0196c..00000000
--- a/src/checks/level1/README-detaching-temporary.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# detaching-temporary
-
-Finds places where you're calling non-const member functions on temporaries.
-For example `getList().first()`, which would detach if the container is shared.
-
-There can be some false-positives, for example `someHash.values().first()` because refcount is 1.
-But `constFirst()` is a good default, so you should try to use it wherever you can, since it's not practical to inspect all code and figure out if the container is shared or not.