From 01aa1b1541fcf9d5f2c9b4eb784387b862a6e3e7 Mon Sep 17 00:00:00 2001 From: sunxuejiao Date: Mon, 6 Jan 2025 10:45:22 +0800 Subject: [PATCH] bug: modify pasteboard enum type Signed-off-by: sunxuejiao --- distributeddatamgr/pasteboard/include/oh_pasteboard.h | 8 ++++---- .../pasteboard/include/oh_pasteboard_err_code.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/distributeddatamgr/pasteboard/include/oh_pasteboard.h b/distributeddatamgr/pasteboard/include/oh_pasteboard.h index c4f23689e..5aa51aa78 100644 --- a/distributeddatamgr/pasteboard/include/oh_pasteboard.h +++ b/distributeddatamgr/pasteboard/include/oh_pasteboard.h @@ -72,11 +72,11 @@ typedef enum Pasteboard_FileConflictOption { /** * @brief Overwrite when destUir has file with same name. */ - OH_PASTEBOARD_OVERWRITE = 0, + PASTEBOARD_OVERWRITE = 0, /** * @brief Skip when destUir has file with same name. */ - OH_PASTEBOARD_SKIP = 1 + PASTEBOARD_SKIP = 1 } Pasteboard_FileConflictOption; /** @@ -88,11 +88,11 @@ typedef enum Pasteboard_ProgressIndicator { /** * @brief Getting data without system default progress indicator. */ - OH_PASTEBOARD_NONE = 0, + PASTEBOARD_NONE = 0, /** * @brief Getting data with system default progress indicator. */ - OH_PASTEBOARD_DEFAULT = 1 + PASTEBOARD_DEFAULT = 1 } Pasteboard_ProgressIndicator; /** diff --git a/distributeddatamgr/pasteboard/include/oh_pasteboard_err_code.h b/distributeddatamgr/pasteboard/include/oh_pasteboard_err_code.h index aafcb849d..8dba41d2a 100644 --- a/distributeddatamgr/pasteboard/include/oh_pasteboard_err_code.h +++ b/distributeddatamgr/pasteboard/include/oh_pasteboard_err_code.h @@ -78,22 +78,22 @@ typedef enum PASTEBOARD_ErrCode { * @error Copy file failed. * @since 15 */ - OH_PASTEBOARD_COPY_FILE_ERROR = 12900007, + ERR_PASTEBOARD_COPY_FILE_ERROR = 12900007, /** * @error Failed to start progress. * @since 15 */ - OH_PASTEBOARD_PROGRESS_START_ERROR = 12900008, + ERR_PASTEBOARD_PROGRESS_START_ERROR = 12900008, /** * @error Progress exits abnormally. * @since 15 */ - OH_PASTEBOARD_PROGRESS_ABNORMAL = 12900009, + ERR_PASTEBOARD_PROGRESS_ABNORMAL = 12900009, /** * @error Get Data failed. * @since 15 */ - OH_PASTEBOARD_GET_DATA_FAILED = 12900010, + ERR_PASTEBOARD_GET_DATA_FAILED = 12900010, } PASTEBOARD_ErrCode; #ifdef __cplusplus }; -- Gitee