From aefd7f22076d6484f04c49187acf85376a92d918 Mon Sep 17 00:00:00 2001 From: liuyuxiang-bear Date: Mon, 14 Mar 2022 16:14:16 +0800 Subject: [PATCH] Description: regulate code and copyright headers IssueNo: https://gitee.com/openharmony/ace_engine_lite/issues/I4XQL1 Feature or Bugfix: Bugfix Binary Source:No Signed-off-by: liuyuxiang --- frameworks/common/memory/mem_proc.cpp | 5 ++--- frameworks/common/memory/memory_heap.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frameworks/common/memory/mem_proc.cpp b/frameworks/common/memory/mem_proc.cpp index 60ecfea..0618de8 100644 --- a/frameworks/common/memory/mem_proc.cpp +++ b/frameworks/common/memory/mem_proc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -124,8 +124,7 @@ void AceMemProc::JerryMemTracing() return; } - FILE *fp = nullptr; - fp = fopen(MEM_LOG_FILE_PATH, "a+"); + FILE *fp = fopen(MEM_LOG_FILE_PATH, "a+"); if (fp == nullptr) { HILOG_ERROR(HILOG_MODULE_ACE, "Get file error"); return; diff --git a/frameworks/common/memory/memory_heap.cpp b/frameworks/common/memory/memory_heap.cpp index 1350529..c3cdf20 100644 --- a/frameworks/common/memory/memory_heap.cpp +++ b/frameworks/common/memory/memory_heap.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at