From 4eb9bec5f2bc95f44075d904e6369b55fa8c7f73 Mon Sep 17 00:00:00 2001 From: ZhangLiang Date: Thu, 17 Oct 2024 13:28:42 +0000 Subject: [PATCH] =?UTF-8?q?codecheck=20=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ZhangLiang Change-Id: Ic95970d3444e4317b986cad09ca2a24917476911 --- openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.cpp | 3 ++- openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.h | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.cpp b/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.cpp index ef4fbcc0..6d2123a7 100644 --- a/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.cpp +++ b/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.cpp @@ -21,7 +21,8 @@ #define EOK 0 extern "C" { - void *loader_instance_heap_calloc(const struct loader_instance *instance, size_t size, VkSystemAllocationScope allocation_scope); + void *loader_instance_heap_calloc(const struct loader_instance *instance, + size_t size, VkSystemAllocationScope allocation_scope); } constexpr const char *DEBUG_SANDBOX_DIR = "/data/storage/el1/bundle/"; diff --git a/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.h b/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.h index 15f551b0..20bb67e8 100644 --- a/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.h +++ b/openharmony/bundle_mgr_helper/vk_bundle_mgr_helper.h @@ -12,6 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#ifndef VK_BUNDLE_MGR_HELPER_H +#define VK_BUNDLE_MGR_HELPER_H + #include "vulkan/vulkan_core.h" #ifdef __cplusplus #include @@ -60,4 +63,5 @@ private: }; } } -#endif // __cplusplus \ No newline at end of file +#endif // __cplusplus +#endif \ No newline at end of file -- Gitee