mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix indentation in example (#1339)
This commit is contained in:
committed by
Sergey Zubkov
parent
358bef703e
commit
abad343557
@@ -9789,7 +9789,7 @@ The following should not pass code review:
|
|||||||
f(*g_p);
|
f(*g_p);
|
||||||
|
|
||||||
// BAD: same reason, just passing it as a "this" pointer
|
// BAD: same reason, just passing it as a "this" pointer
|
||||||
g_p->func();
|
g_p->func();
|
||||||
}
|
}
|
||||||
|
|
||||||
The fix is simple -- take a local copy of the pointer to "keep a ref count" for your call tree:
|
The fix is simple -- take a local copy of the pointer to "keep a ref count" for your call tree:
|
||||||
|
|||||||
Reference in New Issue
Block a user