diff options
Diffstat (limited to 'src/checks/level1/README-range-loop.md')
-rw-r--r-- | src/checks/level1/README-range-loop.md | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/checks/level1/README-range-loop.md b/src/checks/level1/README-range-loop.md deleted file mode 100644 index ef9d4eda..00000000 --- a/src/checks/level1/README-range-loop.md +++ /dev/null @@ -1,12 +0,0 @@ -# range-loop - -Finds places where you're using C++11 range-loops with non-const Qt containers (potential detach). - -Fix it by marking the container const, or, since Qt 5.7, use `qAsConst()`: - -#### Example - -`for (auto i : qAsConst(list)) { ... }` - -Also warns if you're passing structs with non-trivial copy-ctor or non-trivial dtor by value, use -const-ref so that the copy-ctor and dtor don't get called. |