blob: 9e9f64ea0ea0502724f1ce108c0ab44e500d6b86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# rule-of-three
Implements the rule of three:
<https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29>
#### Exceptions
To reduce the amount of warnings, these cases won't emit warnings:
- class has a QSharedDataPointer member
- class inherits from QSharedData
- if only the dtor is implemented and it's protected
- class name ends with "Private" and is defined in a .cpp, .cxx or _p.h file
In some cases you're missing methods, in others you have too many methods. You'll have to judge what's the correct fix and beware of binary compatibility.
|