Commit 56fa68ee authored by Ronan's avatar Ronan
Browse files

fix(AppDataContainer): use iterator in get app data, (at => poor performance)

parent 44de3832
......@@ -66,7 +66,7 @@ const unordered_map<string, string> &AppDataContainer::getAppDataMap () const {
const string &AppDataContainer::getAppData (const string &name) const {
L_D();
auto it = d->appData->find(name);
return it == d->appData->cend() ? Utils::getEmptyConstRefObject<string>() : d->appData->at(name);
return it == d->appData->cend() ? Utils::getEmptyConstRefObject<string>() : it->second;
}
void AppDataContainer::setAppData (const string &name, const string &appData) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment