summaryrefslogtreecommitdiff
path: root/src/core/common/CharReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/CharReader.cpp')
-rw-r--r--src/core/common/CharReader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/common/CharReader.cpp b/src/core/common/CharReader.cpp
index 373c0c1..4bd81ed 100644
--- a/src/core/common/CharReader.cpp
+++ b/src/core/common/CharReader.cpp
@@ -83,7 +83,7 @@ Buffer::Buffer(const std::string &str)
Buffer::~Buffer()
{
// Make sure all cursors have been deleted
- for (bool cursor_alive: alive) {
+ for (bool cursor_alive : alive) {
assert(!cursor_alive);
}
}
@@ -516,7 +516,7 @@ CharReaderFork CharReader::fork()
return CharReaderFork(buffer, readCursor, peekCursor, coherent);
}
-CharReader::Context CharReader::getContext(ssize_t maxSize)
+TextCursor::Context CharReader::getContext(ssize_t maxSize)
{
// Clone the current read cursor
Buffer::CursorId cur = buffer->createCursor(readCursor.cursor);
@@ -612,7 +612,7 @@ CharReader::Context CharReader::getContext(ssize_t maxSize)
// Delete the newly created cursor
buffer->deleteCursor(cur);
- return CharReader::Context{ss.str(), relPos, !foundBegin || tStart != start,
+ return TextCursor::Context{ss.str(), relPos, !foundBegin || tStart != start,
!foundEnd || tEnd != end};
}