aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level2/README-copyable-polymorphic.md
blob: a41ead024d791044212456b54d72bef6f28f3d55 (plain)
1
2
3
4
5
6
7
8
# copyable-polymorphic

Finds polymorphic classes that are copyable.
These classes are usually vulnerable to slicing [1].

To fix these warnings use Q_DISABLE_COPY or delete the copy-ctor yourself.

[1] <https://en.wikipedia.org/wiki/Object_slicing>