Diff blocks: fix incorrect use for CFamily

Fix the remaining issues in the CFamily.
This commit is contained in:
Marco Borgeaud 2023-08-15 12:07:06 +02:00 committed by GitHub
parent 4aee7ce2d6
commit dde2f675f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ Each override of the `operator new` should have a matching overridden `operator
Imagine a custom allocator `MyAllocator`:
[source,cpp,diff-id=1,diff-type=noncompliant]
[source,cpp]
----
class MyAllocator {
public:

View File

@ -107,7 +107,7 @@ bool fire(Point pos, Direction dir, State const& s) {
Use a local object
[source,cpp,diff-id=1,diff-type=noncompliant]
[source,cpp,diff-id=1,diff-type=compliant]
----
bool fire(Point pos, Direction dir, State const& s) {
Bullet bullet{pos, dir};