Commit 7798c94
Modify DISALLOW_COPY_AND_ASSIGN to delete instead of relying on visibility
By deleting the functions instead of just declaring them it becomes
harder to use the macros wrong. It also means more meaningful compiler
errors are generated if someone tries to use the deleted functions.
This also removes an unused private variable that can now be statically
proven by the compiler as unused (and therefore generates a warning).
Change-Id: I13c7a04a8e56bc62a5a6b9f765889e88428a7388
Reviewed-on: http://review.couchbase.org/70587
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>1 parent 82d4cb2 commit 7798c94
2 files changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | | - | |
37 | 35 | | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
0 commit comments