Fix -Wshadow warnings

This commit is contained in:
Ion Gaztañaga
2021-12-26 22:12:32 +01:00
parent 346b249db8
commit 4335c7874a
4 changed files with 45 additions and 44 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ struct A
int a, b, c;
static int count;
A() : a (999), b(1000), c(1001) {++count;}
A(int a) : a (a), b(1000), c(1001) {++count;}
A(int a, int b) : a (a), b(b), c(1001) {++count;}
A(int a, int b, int c) : a (a), b(b), c(c) {++count;}
A(int x) : a (x), b(1000), c(1001) {++count;}
A(int x, int y) : a (x), b(y), c(1001) {++count;}
A(int x, int y, int z) : a (x), b(y), c(z) {++count;}
A(const A&) {++count;}
virtual ~A() {--count;}
};