Diff blocks: fix incorrect use for CFamily
Fix the remaining issues in the CFamily.
This commit is contained in:
parent
4aee7ce2d6
commit
dde2f675f7
@ -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:
|
||||
|
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user