Change-Id: Idd33e42312d570b9a02790f2326819842da06727
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
}
}
-
const char *WorldClock::GetItemKey(int type, int no)
{
- static std::stringstream ss;
- ss.clear();
+ static std::string s;
+ s.clear();
- ss << "ITEM_" << no << "_";
+ s.append("ITEM_");
+ s.append(std::to_string(no));
+ s.append("_");
switch (type) {
case CITY:
- ss << "CITY";
+ s.append("CITY");
break;
case COUNTRY:
- ss << "COUNTRY";
+ s.append("COUNTRY");
break;
case OFFSET:
- ss << "OFFSET";
+ s.append("OFFSET");
break;
default:
ERR("Invalid type!");
return NULL;
}
- return ss.str().c_str();
+ return s.c_str();
}
void WorldClock::SaveItem(const model::Location *item, int i)