From 6cdc1c09de1182b017b823fa8b90b372484abd60 Mon Sep 17 00:00:00 2001 From: zhangyipeng Date: Sat, 21 Dec 2024 17:36:20 +0800 Subject: [PATCH] fix some code according to the rule Signed-off-by: zhangyipeng Change-Id: Ic08fca0aa4925006794bb7d31ee9dbe86e0f6a08 --- frameworks/cj/src/cj_avsession_utils.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frameworks/cj/src/cj_avsession_utils.cpp b/frameworks/cj/src/cj_avsession_utils.cpp index 83261d23..584fde81 100644 --- a/frameworks/cj/src/cj_avsession_utils.cpp +++ b/frameworks/cj/src/cj_avsession_utils.cpp @@ -94,9 +94,9 @@ public: static int32_t runSteps(std::vector &funcs) { - int code = CJNO_ERROR; + int32_t code = CJNO_ERROR; for (auto& step: funcs) { - int32_t code = step(); + code = step(); if (code != CJNO_ERROR) { return code; } @@ -106,9 +106,9 @@ public: int32_t run() { - int code = CJNO_ERROR; + int32_t code = CJNO_ERROR; for (auto& step: steps) { - int32_t code = step(); + code = step(); if (code != CJNO_ERROR) { return code; } @@ -122,10 +122,10 @@ public: /* WantParas <=> CArray ========================*/ -const char *FD = "FD"; -const char *REMOTE_OBJECT = "RemoteObject"; -const char *TYPE_PROPERTY = "type"; -const char *VALUE_PROPERTY = "value"; +const char* const FD = "FD"; +const char* const REMOTE_OBJECT = "RemoteObject"; +const char* const TYPE_PROPERTY = "type"; +const char* const VALUE_PROPERTY = "value"; using WantParams = OHOS::AAFwk::WantParams; -- Gitee