Reduce memory allocations/deallocations and string copies when loading language files

This commit is contained in:
heckflosse
2019-05-14 00:23:10 +02:00
parent a2e2ace1c8
commit 357cf3a89e

View File

@@ -179,7 +179,7 @@ void MultiLangMgr::load(const Glib::ustring &language, const std::vector<Glib::u
value.replace(pos, 2, "\n"); value.replace(pos, 2, "\n");
pos++; pos++;
} }
hint = translations.emplace_hint(hint, key, value); hint = translations.emplace_hint(hint, std::move(key), std::move(value));
} }
} }
} }