Reduce memory allocations/deallocations and string copies when loading language files
This commit is contained in:
@@ -179,7 +179,7 @@ void MultiLangMgr::load(const Glib::ustring &language, const std::vector<Glib::u
|
||||
value.replace(pos, 2, "\n");
|
||||
pos++;
|
||||
}
|
||||
hint = translations.emplace_hint(hint, key, value);
|
||||
hint = translations.emplace_hint(hint, std::move(key), std::move(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user