/*
- * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2017-2023 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
std::map<Privacy, int> received;
unsigned int i = 0;
- for (auto p : privacies) {
+ for (auto &p : privacies) {
received[p] = responses[i++];
if (received[p] != ASKUSER_DENY_ONCE &&
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2020 - 2023 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
memset(privacies_c, 0, privacies.size());
- for (auto p : privacies) {
+ for (auto &p : privacies) {
if (!(privacies_c[i] = new char[p.size() + 1])){
ALOGE("Cannot allocate memory for bundle creation");
ret = -1;