From 1a9c9fe94a63a5aa636860753998cc0e8788bc4c Mon Sep 17 00:00:00 2001 From: linjun9528 Date: Tue, 29 Mar 2022 15:06:46 +0800 Subject: [PATCH] fix codex Signed-off-by: linjun9528 --- interfaces/kits/js/BUILD.gn | 2 +- interfaces/kits/js/src/file_manager_napi.cpp | 2 +- services/include/storage_manager_inf.h | 2 +- services/src/fileoper/ext_storage/storage_manager_inf.cpp | 2 +- services/src/fileoper/media_file_oper.cpp | 3 ++- services/src/fileoper/media_file_utils.cpp | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/interfaces/kits/js/BUILD.gn b/interfaces/kits/js/BUILD.gn index ed6253eb..c9800ef9 100644 --- a/interfaces/kits/js/BUILD.gn +++ b/interfaces/kits/js/BUILD.gn @@ -1,4 +1,4 @@ -# 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 diff --git a/interfaces/kits/js/src/file_manager_napi.cpp b/interfaces/kits/js/src/file_manager_napi.cpp index 73a1a9e4..1aa3447c 100644 --- a/interfaces/kits/js/src/file_manager_napi.cpp +++ b/interfaces/kits/js/src/file_manager_napi.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 diff --git a/services/include/storage_manager_inf.h b/services/include/storage_manager_inf.h index 061fa6c6..4f294f16 100644 --- a/services/include/storage_manager_inf.h +++ b/services/include/storage_manager_inf.h @@ -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 diff --git a/services/src/fileoper/ext_storage/storage_manager_inf.cpp b/services/src/fileoper/ext_storage/storage_manager_inf.cpp index fc14f550..02481edf 100644 --- a/services/src/fileoper/ext_storage/storage_manager_inf.cpp +++ b/services/src/fileoper/ext_storage/storage_manager_inf.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 diff --git a/services/src/fileoper/media_file_oper.cpp b/services/src/fileoper/media_file_oper.cpp index 4fc45791..c93f6ccb 100644 --- a/services/src/fileoper/media_file_oper.cpp +++ b/services/src/fileoper/media_file_oper.cpp @@ -70,7 +70,7 @@ int MediaFileOper::OperProcess(uint32_t code, MessageParcel &data, MessageParcel break; } default: { - DEBUG_LOG("not valid code %{public}d.", code); + DEBUG_LOG("not valid code %{public}u.", code); break; } } @@ -125,6 +125,7 @@ int MediaFileOper::ListFile(const string &type, const string &path, int offset, int MediaFileOper::Mkdir(const string &name, const string &path) const { + (void)name; DEBUG_LOG("MediaFileOper::mkdir path %{public}s.", path.c_str()); return SUCCESS; } diff --git a/services/src/fileoper/media_file_utils.cpp b/services/src/fileoper/media_file_utils.cpp index 36fa68bf..dcdd31e4 100644 --- a/services/src/fileoper/media_file_utils.cpp +++ b/services/src/fileoper/media_file_utils.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 -- Gitee