已开启
质量加固 fix AbilityBase_Want #857
质量加固 fix AbilityBase_Want #857
已开启
SkyQAQ创建于 8月1日
2 个文件变更+5-11
@@ -16,6 +16,10 @@
16#ifndef ABILITY_BASE_WANT_MANAGER_H16#ifndef ABILITY_BASE_WANT_MANAGER_H
17#define ABILITY_BASE_WANT_MANAGER_H17#define ABILITY_BASE_WANT_MANAGER_H
18 18 
19+#include <map>
20+#include <stdint.h>
21+#include <string>
22+ 
19#include "want.h"23#include "want.h"
20#include "want/include/want.h"24#include "want/include/want.h"
21 25 
@@ -14,6 +14,7 @@
14 */14 */
15 15 
16#include "want.h"16#include "want.h"
17+#include "want_manager.h"
17#include <map>18#include <map>
18#include <string>19#include <string>
19#include <unistd.h>20#include <unistd.h>
@@ -21,17 +22,6 @@
21#include "securec.h"22#include "securec.h"
22#include "want/include/want.h"23#include "want/include/want.h"
23 24 
24-struct AbilityBase_Want {
25- AbilityBase_Element element;
26- std::map<std::string, std::string> params;
27- std::map<std::string, int32_t> fds;
28- std::map<std::string, int32_t> intParams;
29- std::map<std::string, bool> boolParams;
30- std::map<std::string, double> doubleParams;
31- std::string uri = "";
32- int32_t flag = 0;
33-};
34- 
35AbilityBase_Want* OH_AbilityBase_CreateWant(AbilityBase_Element element)25AbilityBase_Want* OH_AbilityBase_CreateWant(AbilityBase_Element element)
36{26{
37 std::unique_ptr<AbilityBase_Want> want = std::make_unique<AbilityBase_Want>();27 std::unique_ptr<AbilityBase_Want> want = std::make_unique<AbilityBase_Want>();