1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 22:22:41 +03:00

Avoid needless constant allocation in StaticRegister::set

This commit is contained in:
Maxime Coste 2018-05-16 20:50:18 +10:00
parent 4cc9c9997e
commit 9bd3231d9b

View File

@ -29,7 +29,7 @@ class StaticRegister : public Register
public:
void set(Context&, ConstArrayView<String> values) override
{
m_content = Vector<String, MemoryDomain::Registers>(values.begin(), values.end());
m_content.assign(values.begin(), values.end());
}
ConstArrayView<String> get(const Context&) override