Skip to content

Commit c235ef1

Browse files
authored
Update C26432 doc - use default keyword everywhere
The "no warning" example doesn't use the default keyword everywhere it could be. Other analyzers could complain: https://rules.sonarsource.com/cpp/RSPEC-3490
1 parent 045a7ba commit c235ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/code-quality/c26432.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ namespace no_warning
4747
{
4848
struct S
4949
{
50-
S() noexcept {}
50+
S() noexcept = default;
5151
S(const S& s) = default;
5252
S(S&& s) = default;
5353
S& operator=(const S& s) = default;
5454
S& operator=(S&& s) = default;
55-
~S() {}
55+
~S() = default;
5656
};
5757
}
5858
```

0 commit comments

Comments
 (0)