add Buffer::INVALID_CHANGE_OPERATION_INDEX

This commit is contained in:
Josh Holtrop 2017-01-09 21:46:52 -05:00
parent f3753be4eb
commit 5de13644de
2 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,7 @@ void Buffer::common_initialization()
} }
m_change_buffer = std::make_shared<GapBuffer>(); m_change_buffer = std::make_shared<GapBuffer>();
m_operation_level = 0; m_operation_level = 0;
m_current_change_operation_index = 0xFFFFFFFFu; m_current_change_operation_index = INVALID_CHANGE_OPERATION_INDEX;
} }
void Buffer::load_empty_buffer() void Buffer::load_empty_buffer()

View File

@ -13,6 +13,11 @@
class Buffer class Buffer
{ {
public: public:
enum : uint32_t
{
INVALID_CHANGE_OPERATION_INDEX = 0xFFFFFFFFu,
};
class Iterator class Iterator
{ {
public: public: