aboutsummaryrefslogtreecommitdiffstats
path: root/docs/checks/README-wrong-qevent-cast.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/checks/README-wrong-qevent-cast.md')
-rw-r--r--docs/checks/README-wrong-qevent-cast.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/checks/README-wrong-qevent-cast.md b/docs/checks/README-wrong-qevent-cast.md
index 96244231..3779bc82 100644
--- a/docs/checks/README-wrong-qevent-cast.md
+++ b/docs/checks/README-wrong-qevent-cast.md
@@ -1,11 +1,12 @@
# wrong-qevent-cast
-Warns when a QEvent is possibly cast to the wrong derived class via static_cast.
+Warns when a `QEvent` is possibly cast to the wrong derived class via `static_cast`.
Example:
+```
switch (ev->type()) {
case QEvent::MouseMove:
auto e = static_cast<QKeyEvent*>(ev);
}
-
-Currently only casts inside switches are verified.
+```
+Only casts inside switch statements are verified.