summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/include
diff options
context:
space:
mode:
authorTeodora Kireva <tkireva@luxoft.com>2017-02-27 17:25:56 +0200
committerIra Lytvynenko <ILytvynenko@luxoft.com>2017-04-12 19:11:11 +0300
commit195ae7d4911a9f23b5a468c4c30335667f351fb0 (patch)
tree816941c7b88a7ecf33521455b40e85d4538317ec /src/components/policy/policy_external/include
parent723a6b8357fc9c8718aea2cf9cb10ed55d39ba04 (diff)
downloadsdl_core-195ae7d4911a9f23b5a468c4c30335667f351fb0.tar.gz
Fix used int type to uint32_t
Variables type is changed
Diffstat (limited to 'src/components/policy/policy_external/include')
-rw-r--r--src/components/policy/policy_external/include/policy/policy_types.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/policy/policy_external/include/policy/policy_types.h b/src/components/policy/policy_external/include/policy/policy_types.h
index 021e837196..a0eefda555 100644
--- a/src/components/policy/policy_external/include/policy/policy_types.h
+++ b/src/components/policy/policy_external/include/policy/policy_types.h
@@ -370,19 +370,19 @@ struct MetaInfo {
* that will be sent on the next OnSystemRequest retry sequence
*/
struct RetrySequenceURL {
- int app_idx_;
- int url_idx_;
+ uint32_t app_idx_;
+ uint32_t url_idx_;
std::string policy_app_id_;
- RetrySequenceURL(int app, int url, const std::string& app_id)
+ RetrySequenceURL(uint32_t app, uint32_t url, const std::string& app_id)
: app_idx_(app), url_idx_(url), policy_app_id_(app_id) {}
- RetrySequenceURL() {
- app_idx_ = 0;
- url_idx_ = 0;
- policy_app_id_ = "";
- }
-}
+ RetrySequenceURL() : app_idx_(0), url_idx_(0) {}
+};
-typedef std::pair<int, int> AppIdURL;
+/**
+ * @brief Index of the application, index of its URL
+ * from the Endpoints vector
+ */
+typedef std::pair<uint32_t, uint32_t> AppIdURL;
} // namespace policy