summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-28 00:39:40 +0100
committerAndreas Stöckel <andreas@somweyr.de>2014-12-28 00:39:40 +0100
commit158c7abd4cf7e99150d89074e13c0e7bb620f453 (patch)
tree82d6be64c0cdb07497480bcde6191acc4cb29135 /src/core
parentdfc44b33d8a58d3caa3ea04acf0ce009c811b4bc (diff)
small performance improvement
Diffstat (limited to 'src/core')
-rw-r--r--src/core/common/CharReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/common/CharReader.cpp b/src/core/common/CharReader.cpp
index 4bd81ed..1a52f53 100644
--- a/src/core/common/CharReader.cpp
+++ b/src/core/common/CharReader.cpp
@@ -336,7 +336,7 @@ bool Buffer::atEnd(Buffer::CursorId cursor) const
(c.bucket == endBucket && c.bucketOffs == endBucket->size());
}
-bool Buffer::fetchCharacter(CursorId cursor, char &c, bool incr)
+inline bool Buffer::fetchCharacter(CursorId cursor, char &c, bool incr)
{
Cursor &cur = cursors[cursor];
while (true) {