[Bug] Some rvalue objects were returned.
Now only reference to picojson string is returned.
Change is applied in Alarm and Application modules.
[Verification] Code compiles.
Change-Id: Ic0c59467bf994813b3799235cc9e22d98700d23b
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
size_t i = 0;
for (auto iter = values.begin(); iter != values.end(); ++iter, ++i) {
- arr[i] = iter->to_str().c_str();
+ arr[i] = iter->get<std::string>().c_str();
}
int ret = APP_CONTROL_ERROR_NONE;
size_t i = 0;
for (auto iter = value.begin(); iter != value.end(); ++iter, ++i) {
- arr[i] = iter->to_str().c_str();
+ arr[i] = iter->get<std::string>().c_str();
}
if (1 == size) {