From 6393042f9730a70fed382264cda7960c4a361227 Mon Sep 17 00:00:00 2001 From: bwx1095090 Date: Mon, 5 Dec 2022 11:10:04 +0800 Subject: [PATCH] =?UTF-8?q?CodeCheck=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bwx1095090 --- test/common/threadpool/thread_pool_test.cpp | 3 +-- test/function/sa_client/sa_client_test.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/common/threadpool/thread_pool_test.cpp b/test/common/threadpool/thread_pool_test.cpp index b6aa4e5..3a7b7ef 100755 --- a/test/common/threadpool/thread_pool_test.cpp +++ b/test/common/threadpool/thread_pool_test.cpp @@ -82,8 +82,7 @@ public: const char *GetName() const override { - const char *name = workerName_.c_str(); - return name; + return workerName_.c_str(); } bool OneAction() override diff --git a/test/function/sa_client/sa_client_test.cpp b/test/function/sa_client/sa_client_test.cpp index 133ee21..8d0e6de 100644 --- a/test/function/sa_client/sa_client_test.cpp +++ b/test/function/sa_client/sa_client_test.cpp @@ -26,7 +26,7 @@ using namespace OHOS::AI; using namespace testing::ext; namespace { - const char *INPUT_CHARACTER = "inputData"; + const char * const INPUT_CHARACTER = "inputData"; const char * const CONFIG_DESCRIPTION = "config information"; const long long CLIENT_INFO_VERSION = 1; const int CLIENT_ID = -1;