From f74ad998d2e8d2636fb25e94823946a3b151e34e Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 11 May 2016 10:26:05 -0700 Subject: Replace some calls to Release() with direct delete, part 1. Searching for the anti-pattern: void Release() { delete this; } We must be explicit on the ownership model. Add unique_ptrs as a result. Review-Url: https://codereview.chromium.org/1960673003 --- xfa/fde/cfde_path.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'xfa/fde/cfde_path.h') diff --git a/xfa/fde/cfde_path.h b/xfa/fde/cfde_path.h index c4b66f063e..c9f213d350 100644 --- a/xfa/fde/cfde_path.h +++ b/xfa/fde/cfde_path.h @@ -12,8 +12,6 @@ class CFDE_Path : public CFX_Target { public: - void Release() { delete this; } - FX_BOOL StartFigure(); FX_BOOL CloseFigure(); -- cgit v1.2.3