diff --git a/frameworks/cj/src/cj_avsession_utils.cpp b/frameworks/cj/src/cj_avsession_utils.cpp index 83261d23f8ba4e4f4b468635a324a2a0c95d6e1c..584fde81a51f652efb352218d4c7d27f7d5cf918 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;