mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #1012 from franzhollerer/aligning_case_with_switch
aligning case with switch
This commit is contained in:
commit
4ffab15e77
|
@ -2463,10 +2463,10 @@ Consider:
|
|||
intermediate = func2(intermediate);
|
||||
}
|
||||
switch (flag2 / 10) {
|
||||
case 1: if (flag1 == -1) return finalize(intermediate, 1.171);
|
||||
break;
|
||||
case 2: return finalize(intermediate, 13.1);
|
||||
default: break;
|
||||
case 1: if (flag1 == -1) return finalize(intermediate, 1.171);
|
||||
break;
|
||||
case 2: return finalize(intermediate, 13.1);
|
||||
default: break;
|
||||
}
|
||||
return finalize(intermediate, 0.);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user