summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-05 14:59:27 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-05 14:59:27 +0000
commit99996902de8d28565e3a3ae26e60e0977e209c24 (patch)
tree9c5cf1b97dd6564015843f99bb3386c5989ff4e2 /src/buffer.hh
parentd1f3c1832ca3c8dc06545bee0e02a5c0979333a0 (diff)
Use a IdMap for storing hooks
The number of hook names is small (<20), using an UnorderedMap is overkill, and prevents using StringView for key searching.
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index a7c8de25..d6906c87 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -150,7 +150,7 @@ public:
ValueMap& values() const { return m_values; }
- void run_hook_in_own_context(const String& hook_name, StringView param);
+ void run_hook_in_own_context(StringView hook_name, StringView param);
void reload(BufferLines lines, time_t fs_timestamp = InvalidTime);