From 50abc18c8eae0328d544100237937e36eb3f2bf6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 19 Jul 2014 00:18:16 +0100 Subject: Add some more force inlines to some buffer methods --- src/buffer.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buffer.hh') diff --git a/src/buffer.hh b/src/buffer.hh index 2aa38ad3..c43e1ec0 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -177,9 +177,11 @@ private: struct LineList : std::vector { + [[gnu::always_inline]] String& operator[](LineCount line) { return std::vector::operator[]((int)line); } + [[gnu::always_inline]] const String& operator[](LineCount line) const { return std::vector::operator[]((int)line); } }; -- cgit v1.2.3