diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-07-19 00:18:16 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-07-19 00:18:16 +0100 |
| commit | 50abc18c8eae0328d544100237937e36eb3f2bf6 (patch) | |
| tree | dd490716dd8c5dd31983fb0f861e15269e6cdb8b /src/buffer.hh | |
| parent | 6c581b7054a3b0eec470805f945c3fad2eb81441 (diff) | |
Add some more force inlines to some buffer methods
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 2 |
1 files changed, 2 insertions, 0 deletions
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<String> { + [[gnu::always_inline]] String& operator[](LineCount line) { return std::vector<String>::operator[]((int)line); } + [[gnu::always_inline]] const String& operator[](LineCount line) const { return std::vector<String>::operator[]((int)line); } }; |
