Skip to content

Commit

Permalink
Change uint_32t type to size_t
Browse files Browse the repository at this point in the history
Change `uint_32t` type to `size_t`
because `uint_32t` type doesn't match with
`size_t` which returns method `size()` from
`std::vector` type.
File changed:
- rpc_plugins/sdl_rpc_plugin/src/commands/mobile/reset_global_properties_request.cc
  • Loading branch information
v-malko4 committed Jul 13, 2018
1 parent f42464f commit ad33e6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ bool ResetGlobalPropertiesRequest::ResetHelpPromt(
smart_objects::SmartObject so_help_prompt =
smart_objects::SmartObject(smart_objects::SmartType_Array);

for (uint32_t i = 0; i < help_prompt.size(); ++i) {
for (size_t i = 0; i < help_prompt.size(); ++i) {
smart_objects::SmartObject help_prompt_item =
smart_objects::SmartObject(smart_objects::SmartType_Map);
help_prompt_item[strings::text] = help_prompt[i];
Expand All @@ -230,7 +230,7 @@ bool ResetGlobalPropertiesRequest::ResetTimeoutPromt(
smart_objects::SmartObject so_time_out_promt =
smart_objects::SmartObject(smart_objects::SmartType_Array);

for (uint32_t i = 0; i < time_out_promt.size(); ++i) {
for (size_t i = 0; i < time_out_promt.size(); ++i) {
smart_objects::SmartObject timeoutPrompt =
smart_objects::SmartObject(smart_objects::SmartType_Map);
timeoutPrompt[strings::text] = time_out_promt[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ smart_objects::SmartObjectSPtr MessageHelper::CreateAppVrHelp(
}
smart_objects::SmartObject& vr_help = *result;
const smart_objects::SmartObject* vr_help_title = app->vr_help_title();
if (NULL != vr_help_title &&
if (vr_help_title &&
vr_help_title->keyExists(strings::vr_help_title)) {
vr_help[strings::vr_help_title] =
(*vr_help_title)[strings::vr_help_title].asString();
Expand Down

0 comments on commit ad33e6e

Please sign in to comment.