diff --git a/tools/backup_tool/include/tools_op_backup.h b/tools/backup_tool/include/tools_op_backup.h index e3ba653eaa9e9c07cc95fb3305c7ad87afee5e57..40e9bb45fc3d2f2b1bb22277614a778e162f01aa 100644 --- a/tools/backup_tool/include/tools_op_backup.h +++ b/tools/backup_tool/include/tools_op_backup.h @@ -13,7 +13,12 @@ * limitations under the License. */ +#ifndef OHOS_FILEMGMT_BACKUP_TOOLS_OP_BACKUP_H +#define OHOS_FILEMGMT_BACKUP_TOOLS_OP_BACKUP_H + namespace OHOS::FileManagement::Backup { bool BackUpRegister(); -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup + +#endif // OHOS_FILEMGMT_BACKUP_TOOLS_OP_BACKUP_H \ No newline at end of file diff --git a/tools/backup_tool/include/tools_op_check_sa.h b/tools/backup_tool/include/tools_op_check_sa.h index a86e304c714548adfb72ed040adbb00c03db8578..4efdb1ea4633464538c6f0f559fc6e0e1533034b 100644 --- a/tools/backup_tool/include/tools_op_check_sa.h +++ b/tools/backup_tool/include/tools_op_check_sa.h @@ -13,7 +13,12 @@ * limitations under the License. */ +#ifndef OHOS_FILEMGMT_BACKUP_TOOLS_OP_CHECK_SA_H +#define OHOS_FILEMGMT_BACKUP_TOOLS_OP_CHECK_SA_H + namespace OHOS::FileManagement::Backup { bool CheckSaRegister(); -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup + +#endif // OHOS_FILEMGMT_BACKUP_TOOLS_OP_CHECK_SA_H \ No newline at end of file diff --git a/tools/backup_tool/include/tools_op_help.h b/tools/backup_tool/include/tools_op_help.h index 76b72dd38ff1bc1121daf68c0a229e1661b81b51..0f79e350d943a32a746ebb8aefd42c6c84c529d4 100644 --- a/tools/backup_tool/include/tools_op_help.h +++ b/tools/backup_tool/include/tools_op_help.h @@ -13,7 +13,12 @@ * limitations under the License. */ +#ifndef OHOS_FILEMGMT_BACKUP_TOOLS_OP_HELP_H +#define OHOS_FILEMGMT_BACKUP_TOOLS_OP_HELP_H + namespace OHOS::FileManagement::Backup { bool HelpRegister(); -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup + +#endif // OHOS_FILEMGMT_BACKUP_TOOLS_OP_HELP_H \ No newline at end of file diff --git a/tools/backup_tool/include/tools_op_restore.h b/tools/backup_tool/include/tools_op_restore.h index a34e18a573833e48d95d2046e6a5484e6feeb987..4887bee06a633a9d2f26f7a731eebf7bef6c7aae 100644 --- a/tools/backup_tool/include/tools_op_restore.h +++ b/tools/backup_tool/include/tools_op_restore.h @@ -13,7 +13,12 @@ * limitations under the License. */ +#ifndef OHOS_FILEMGMT_BACKUP_TOOLS_OP_RESTORE_H +#define OHOS_FILEMGMT_BACKUP_TOOLS_OP_RESTORE_H + namespace OHOS::FileManagement::Backup { bool RestoreRegister(); -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup + +#endif // OHOS_FILEMGMT_BACKUP_TOOLS_OP_RESTORE_H \ No newline at end of file diff --git a/tools/backup_tool/include/tools_op_restore_async.h b/tools/backup_tool/include/tools_op_restore_async.h index 333bb35f6190872749b4a265e0ad770547a2b911..ca8387a0110cdd4db95b5fed3b65930b41b4871c 100644 --- a/tools/backup_tool/include/tools_op_restore_async.h +++ b/tools/backup_tool/include/tools_op_restore_async.h @@ -13,7 +13,12 @@ * limitations under the License. */ +#ifndef OHOS_FILEMGMT_BACKUP_TOOLS_OP_RESTORE_ASYNC_H +#define OHOS_FILEMGMT_BACKUP_TOOLS_OP_RESTORE_ASYNC_H + namespace OHOS::FileManagement::Backup { bool RestoreAsyncRegister(); -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup + +#endif // OHOS_FILEMGMT_BACKUP_TOOLS_OP_RESTORE_ASYNC_H \ No newline at end of file diff --git a/tools/backup_tool/src/tools_op_restore_async.cpp b/tools/backup_tool/src/tools_op_restore_async.cpp index 750400cb06e2de54bc1b9f37f037d6d8e3e3d745..18e1683a7d71a47da95cc2a6eee20297aa7c42e9 100644 --- a/tools/backup_tool/src/tools_op_restore_async.cpp +++ b/tools/backup_tool/src/tools_op_restore_async.cpp @@ -191,7 +191,7 @@ static int32_t ChangeBundleInfo(const string &pathCapFile, const vector } bundleInfos.emplace_back(BJsonEntityCaps::BundleInfo { .name = name, .versionCode = versionCode, .versionName = versionName, - .spaceOccupied = bundleInfo.spaceOccupied,.allToBackup = bundleInfo.allToBackup, + .spaceOccupied = bundleInfo.spaceOccupied, .allToBackup = bundleInfo.allToBackup, .extensionName = bundleInfo.extensionName, .needToInstall = false}); } }