From 1e054d2bcc21b9db332b6216eaba9763d42d4a25 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 25 Aug 2018 12:20:52 +0800 Subject: [PATCH] Fix #354, Rename impl__SrsAutoFree to impl_SrsAutoFree --- trunk/src/core/srs_core_autofree.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trunk/src/core/srs_core_autofree.hpp b/trunk/src/core/srs_core_autofree.hpp index f77c3af08e..6e13504c7b 100644 --- a/trunk/src/core/srs_core_autofree.hpp +++ b/trunk/src/core/srs_core_autofree.hpp @@ -46,11 +46,11 @@ * where the char* pstr = new char[size]. */ #define SrsAutoFree(className, instance) \ -impl__SrsAutoFree _auto_free_##instance(&instance, false) +impl_SrsAutoFree _auto_free_##instance(&instance, false) #define SrsAutoFreeA(className, instance) \ -impl__SrsAutoFree _auto_free_array_##instance(&instance, true) +impl_SrsAutoFree _auto_free_array_##instance(&instance, true) template -class impl__SrsAutoFree +class impl_SrsAutoFree { private: T** ptr; @@ -59,12 +59,12 @@ class impl__SrsAutoFree /** * auto delete the ptr. */ - impl__SrsAutoFree(T** p, bool array) { + impl_SrsAutoFree(T** p, bool array) { ptr = p; is_array = array; } - virtual ~impl__SrsAutoFree() { + virtual ~impl_SrsAutoFree() { if (ptr == NULL || *ptr == NULL) { return; }