From: Caisking <3449750381@qq.com> Date: Sat, 10 Aug 2024 04:25:42 +0000 (+0800) Subject: 对应组件进行nullptr初始化 X-Git-Tag: release_V1.2.70_20241020_135402~679^2~14 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0966ddd83936c2fba030e63965e1432c7baff91b;p=mirrors%2FFD230.git 对应组件进行nullptr初始化 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodDetectionView.h b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodDetectionView.h index 0add3eef7..639175408 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodDetectionView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodDetectionView.h @@ -53,11 +53,11 @@ namespace OHOS void UpShowBloodText(void); private: - UIImageAnimatorView *imageAnimator; - UILabelExt *titleLabel; - UILabel *Spo2Text; - UIScrollView *BloodDetectionScrollView; - UILabelButtonExt *testButton; + UIImageAnimatorView *imageAnimator{nullptr}; + UILabelExt *titleLabel{nullptr}; + UILabel *Spo2Text{nullptr}; + UIScrollView *BloodDetectionScrollView{nullptr}; + UILabelButtonExt *testButton{nullptr}; uint32_t spo2_; }; diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodResultView.h b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodResultView.h index 29b220dc5..a29d6c896 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodResultView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodResultView.h @@ -63,7 +63,7 @@ namespace OHOS UILabelExt *titleLabel = nullptr; UILabelExt *timeLabel = nullptr; UILabel *bloodLabel = nullptr; - UILabelButtonExt *checkButton; + UILabelButtonExt *checkButton{nullptr}; }; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h index 8678423ce..0d187552b 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h @@ -68,7 +68,7 @@ namespace OHOS UILabelExt *timeLabel = nullptr; UILabel *bloodLabel = nullptr; - UILabelButtonExt *checkButton; + UILabelButtonExt *checkButton{nullptr}; bool viewiInitStatus{false}; bool resLoadStatus{false}; diff --git a/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartDetectionView.h b/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartDetectionView.h index 76d57ef29..a8d92f550 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartDetectionView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartDetectionView.h @@ -65,11 +65,11 @@ namespace OHOS void UpShowHeartText(void); private: - UIImageAnimatorView *imageAnimator; - UILabelExt *titleLabel; - UILabel *HeartText; - UIScrollView *HeartDetectionScrollView; - UILabelButtonExt *testButton; + UIImageAnimatorView *imageAnimator{nullptr}; + UILabelExt *titleLabel{nullptr}; + UILabel *HeartText{nullptr}; + UIScrollView *HeartDetectionScrollView{nullptr}; + UILabelButtonExt *testButton{nullptr}; uint32_t heart_; }; diff --git a/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartResultView.h b/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartResultView.h index 6ce0b9094..06227c4f4 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartResultView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartResultView.h @@ -45,7 +45,7 @@ namespace OHOS UILabelExt *titleLabel = nullptr; UILabelExt *timeLabel = nullptr; UILabel *heartLabel = nullptr; - UILabelButtonExt *checkButton; + UILabelButtonExt *checkButton{nullptr}; }; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h b/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h index 2205141f7..8db3664dd 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h @@ -1,4 +1,9 @@ - +/*** + * @Date: 2024-06-21 09:56:18 + * @LastEditors: Caisking 3449750381@qq.com + * @LastEditTime: 2024-08-09 18:56:33 + * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h + */ #ifndef MessageShow_VIEW_H #define MessageShow_VIEW_H @@ -49,10 +54,13 @@ namespace OHOS UILabel *time{nullptr}; UILabel *message{nullptr}; - UILabelButton *messageButton; // 消息 - UILabelButtonExt *deleteButton; // 清除按键 + UILabelButton *messageButton{nullptr}; // 消息 + UILabelButtonExt *deleteButton{nullptr}; // 清除按键 bool viewInitStatus{false}; + std::string titleStr; + std::string timeStr; + std::string messageStr; }; } // namespace OHOS #endif \ No newline at end of file diff --git a/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageView.h b/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageView.h index 93356a60b..e9e7385c3 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageView.h @@ -1,3 +1,9 @@ +/*** + * @Date: 2024-07-12 11:19:36 + * @LastEditors: Caisking 3449750381@qq.com + * @LastEditTime: 2024-08-10 10:27:24 + * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageView.h + */ /*** * @Date: 2024-04-15 10:55:58 * @LastEditors: Caisking 3449750381@qq.com @@ -88,7 +94,7 @@ namespace OHOS bool viewInitStatus{false}; - MessageModel *g_MessageModel; + MessageModel *g_MessageModel{nullptr}; }; } // namespace OHOS #endif \ No newline at end of file diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetCaluliView.h b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetCaluliView.h index 5edd7eeba..33ffda912 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetCaluliView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetCaluliView.h @@ -46,7 +46,7 @@ namespace OHOS UILabelButtonExt *buttonok_ = nullptr; UIPicker *Picker_ = nullptr; - UIScrollView *SetCaluliScrollView; + UIScrollView *SetCaluliScrollView{nullptr}; }; } // namespace OHOS #endif diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetMileView.h b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetMileView.h index 412bdd468..da510dd8c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetMileView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetMileView.h @@ -1,3 +1,9 @@ +/*** + * @Date: 2024-04-18 11:59:51 + * @LastEditors: Caisking 3449750381@qq.com + * @LastEditTime: 2024-08-10 10:28:21 + * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetMileView.h + */ /*** * @Date: 2024-04-18 11:59:51 * @LastEditors: Caisking 3449750381@qq.com @@ -52,7 +58,7 @@ namespace OHOS UILabelButtonExt *buttonok_ = nullptr; UIPicker *Picker_ = nullptr; - UIScrollView *SetMileScrollView; + UIScrollView *SetMileScrollView{nullptr}; }; } // namespace OHOS #endif diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetStepView.h b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetStepView.h index 66862e0ee..23bc49d8b 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetStepView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetStepView.h @@ -52,7 +52,7 @@ namespace OHOS UILabelButtonExt *buttonok_ = nullptr; UIPicker *Picker_ = nullptr; - UIScrollView *SetStepScrollView; + UIScrollView *SetStepScrollView{nullptr}; }; } // namespace OHOS #endif diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetTimeView.h b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetTimeView.h index 27a3b6a0c..763ad2871 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetTimeView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetTimeView.h @@ -1,3 +1,9 @@ +/*** + * @Date: 2024-04-18 11:58:41 + * @LastEditors: Caisking 3449750381@qq.com + * @LastEditTime: 2024-08-10 10:28:35 + * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetTimeView.h + */ /*** * @Date: 2024-04-18 10:57:45 * @LastEditors: Caisking 3449750381@qq.com @@ -45,7 +51,7 @@ namespace OHOS UILabelButtonExt*buttonok_ = nullptr; UIPicker *Picker_ = nullptr; - UIScrollView *SetTimeScrollView; + UIScrollView *SetTimeScrollView{nullptr}; }; } // namespace OHOS #endif