对应组件进行nullptr初始化
authorCaisking <3449750381@qq.com>
Sat, 10 Aug 2024 04:25:42 +0000 (12:25 +0800)
committerCaisking <3449750381@qq.com>
Sat, 10 Aug 2024 04:25:42 +0000 (12:25 +0800)
code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodDetectionView.h
code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/include/BloodResultView.h
code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h
code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartDetectionView.h
code/sdk/application/wearable/fd230app/nativeui/heartrate/include/HeartResultView.h
code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h
code/sdk/application/wearable/fd230app/nativeui/message/include/MessageView.h
code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetCaluliView.h
code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetMileView.h
code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetStepView.h
code/sdk/application/wearable/fd230app/nativeui/traing/include/TrainingSetTimeView.h

index 0add3ee..6391754 100644 (file)
@@ -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_;
     };
index 29b220d..a29d6c8 100644 (file)
@@ -63,7 +63,7 @@ namespace OHOS
         UILabelExt *titleLabel = nullptr;
         UILabelExt *timeLabel = nullptr;
         UILabel *bloodLabel = nullptr;
-        UILabelButtonExt *checkButton;
+        UILabelButtonExt *checkButton{nullptr};
     };
 }
 
index 8678423..0d18755 100644 (file)
@@ -68,7 +68,7 @@ namespace OHOS
         UILabelExt *timeLabel = nullptr;\r
         UILabel *bloodLabel = nullptr;\r
 \r
-        UILabelButtonExt *checkButton;\r
+        UILabelButtonExt *checkButton{nullptr};\r
 \r
         bool viewiInitStatus{false};\r
         bool resLoadStatus{false};\r
index 76d57ef..a8d92f5 100644 (file)
@@ -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_;
     };
index 6ce0b90..06227c4 100644 (file)
@@ -45,7 +45,7 @@ namespace OHOS
         UILabelExt *titleLabel = nullptr;
         UILabelExt *timeLabel = nullptr;
         UILabel *heartLabel = nullptr;
-        UILabelButtonExt *checkButton;
+        UILabelButtonExt *checkButton{nullptr};
     };
 }
 
index 2205141..8db3664 100644 (file)
@@ -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
index 93356a6..e9e7385 100644 (file)
@@ -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
index 5edd7ee..33ffda9 100644 (file)
@@ -46,7 +46,7 @@ namespace OHOS
         UILabelButtonExt *buttonok_ = nullptr;
         UIPicker *Picker_ = nullptr;
 
-        UIScrollView *SetCaluliScrollView;
+        UIScrollView *SetCaluliScrollView{nullptr};
     };
 } // namespace OHOS
 #endif
index 412bdd4..da510dd 100644 (file)
@@ -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
index 66862e0..23bc49d 100644 (file)
@@ -52,7 +52,7 @@ namespace OHOS
         UILabelButtonExt *buttonok_ = nullptr;
         UIPicker *Picker_ = nullptr;
 
-        UIScrollView *SetStepScrollView;
+        UIScrollView *SetStepScrollView{nullptr};
     };
 } // namespace OHOS
 #endif
index 27a3b6a..763ad28 100644 (file)
@@ -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