Skip to content

Commit

Permalink
Fix tabs/spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed Aug 7, 2020
1 parent 3b590c3 commit 2174832
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/dscanner/analysis/vcall_in_ctor.d
Expand Up @@ -162,17 +162,17 @@ public:
popNestedFunc();
}

override void visit(const(StructDeclaration) decl)
{
pushVirtual(false);
pushInClass(false);
pushNestedFunc(false);
decl.accept(this);
check();
popVirtual();
popInClass();
popNestedFunc();
}
override void visit(const(StructDeclaration) decl)
{
pushVirtual(false);
pushInClass(false);
pushNestedFunc(false);
decl.accept(this);
check();
popVirtual();
popInClass();
popNestedFunc();
}

override void visit(const(Constructor) ctor)
{
Expand Down Expand Up @@ -416,17 +416,17 @@ unittest
}
}, sac);

assertAnalyzerWarnings(q{
class C {
static struct S {
public:
this(int) {
foo();
}
void foo() {}
}
}
}, sac);
assertAnalyzerWarnings(q{
class C {
static struct S {
public:
this(int) {
foo();
}
void foo() {}
}
}
}, sac);

import std.stdio: writeln;
writeln("Unittest for VcallCtorChecker passed");
Expand Down

0 comments on commit 2174832

Please sign in to comment.