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:
parent
4cc9c9997e
commit
9bd3231d9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user