[Verification] - the code compiles without any error and without warnings in Contact module
Change-Id: I52e2a0b123a0bf10cac7c11f06ec0c94319284d2
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
common::stol(FromJson<JsonString>(args, "addressBookId"));
addressBookId = addressBookId == -1 ? 0 : addressBookId;
- unsigned length = batch_args.size();
+ int length = static_cast<int>(batch_args.size());
contacts_list_h contacts_list = NULL;
int error_code = contacts_list_create(&contacts_list);
if (CONTACTS_ERROR_NONE != error_code) {
LoggerW("Added different number of contacts");
}
- for (unsigned int i = 0; i < count; i++) {
+ for (int i = 0; i < count; i++) {
JsonObject out_object;
contacts_record_h contact_record = nullptr;
error_code =
if (status.IsError()) return status;
contacts_list_first(list);
- for (unsigned int i = 0; i < record_count; i++) {
+ for (int i = 0; i < record_count; i++) {
contacts_record_h record;
error_code = contacts_list_get_current_record_p(list, &record);
status = ContactUtil::ErrorChecker(
contacts_list_first(groups_list);
- for (unsigned int i = 0; i < record_count; i++) {
+ for (int i = 0; i < record_count; i++) {
contacts_record_h contacts_record;
err = contacts_list_get_current_record_p(groups_list, &contacts_record);
if (CONTACTS_ERROR_NONE != err || nullptr == contacts_record) {
result_obj.insert(std::make_pair(std::string("removed"),
picojson::value(JsonArray{}))).first->second.get<JsonArray>();
- for (unsigned int i = 0; i < count; i++) {
+ for (int i = 0; i < count; i++) {
contacts_record_h contact_updated_record = nullptr;
error_code = contacts_list_get_current_record_p(contacts_list,
"Fail to get address book from list");
}
- for (unsigned int i = 0; i < record_count; i++) {
+ for (int i = 0; i < record_count; i++) {
contacts_record_h contacts_record = nullptr;
error_code = contacts_list_get_current_record_p(*contacts_list_ptr,
&contacts_record);
contacts_list_first(person_list);
- for (unsigned int i = 0; i < record_count; i++) {
+ for (int i = 0; i < record_count; i++) {
contacts_record_h contacts_record;
error_code =
contacts_list_get_current_record_p(person_list, &contacts_record);
return status;
}
- for (unsigned int i = 0; i < record_count; ++i) {
+ for (int i = 0; i < record_count; ++i) {
unsigned int actual_index = record_count - 1 - i;
contacts_record_h phone_record = nullptr;
int err = contacts_record_get_child_record_at_p(
}
JsonArray nicknames;
- for (unsigned int i = 0; i < count; ++i) {
+ for (int i = 0; i < count; ++i) {
contacts_record_h nickname = nullptr;
err = contacts_record_get_child_record_at_p(
contacts_record, _contacts_contact.nickname, i, &nickname);
return status;
}
- for (unsigned int i = 0; i < child_rec_count; ++i) {
+ for (int i = 0; i < child_rec_count; ++i) {
JsonValue val{JsonObject{}};
- data.import_func(contacts_record, i, &val.get<JsonObject>());
+ data.import_func(contacts_record, static_cast<unsigned int>(i), &val.get<JsonObject>());
array.push_back(val);
}
}
}
bool is_contact_anniv;
- for (unsigned int i = 0; i < child_rec_count; ++i) {
+ for (int i = 0; i < child_rec_count; ++i) {
JsonValue anniversary{JsonObject{}};
PlatformResult status = ImportContactAnniversariesFromContactsRecord(
- contacts_record, i, &anniversary.get<JsonObject>(), &is_contact_anniv);
+ contacts_record, static_cast<unsigned int>(i), &anniversary.get<JsonObject>(), &is_contact_anniv);
if (status.IsError()) {
LoggerE("Error: %s", status.message().c_str());
return status;
return status;
}
- for (unsigned int i = 0; i < child_rec_count; ++i) {
+ for (int i = 0; i < child_rec_count; ++i) {
JsonValue val{JsonObject{}};
- status = ImportContactNotesFromContactsRecord(contacts_record, i, &val);
+ status = ImportContactNotesFromContactsRecord(contacts_record, static_cast<unsigned int>(i), &val);
if (status.IsError()) {
LoggerE("Error: %s", status.message().c_str());
return status;