diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-04-05 16:34:10 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-04-05 16:34:10 +1000 | 
| commit | 088d8034e79e7e2e44a114a2dc203bda5518dd49 (patch) | |
| tree | d16ca55ee0799b7bb076807240935e17688bc2cf /src/CellBuffer.h | |
| parent | 9f9b24ae9bc0ae771454732868cdb136fe995e42 (diff) | |
| download | scintilla-mirror-088d8034e79e7e2e44a114a2dc203bda5518dd49.tar.gz | |
Change actionType to an enum class.
Diffstat (limited to 'src/CellBuffer.h')
| -rw-r--r-- | src/CellBuffer.h | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 599b6062f..43ee0d884 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -25,14 +25,14 @@ public:   */  class ILineVector; -enum actionType { insertAction, removeAction, startAction, containerAction }; +enum class ActionType { insert, remove, start, container };  /**   * Actions are used to store all the information required to perform one undo/redo step.   */  class Action {  public: -	actionType at; +	ActionType at;  	Sci::Position position;  	std::unique_ptr<char[]> data;  	Sci::Position lenData; @@ -46,7 +46,7 @@ public:  	// Move constructor allows vector to be resized without reallocating.  	Action(Action &&other) noexcept = default;  	~Action(); -	void Create(actionType at_, Sci::Position position_=0, const char *data_=nullptr, Sci::Position lenData_=0, bool mayCoalesce_=true); +	void Create(ActionType at_, Sci::Position position_=0, const char *data_=nullptr, Sci::Position lenData_=0, bool mayCoalesce_=true);  	void Clear() noexcept;  }; @@ -72,7 +72,7 @@ public:  	void operator=(UndoHistory &&) = delete;  	~UndoHistory(); -	const char *AppendAction(actionType at, Sci::Position position, const char *data, Sci::Position lengthData, bool &startSequence, bool mayCoalesce=true); +	const char *AppendAction(ActionType at, Sci::Position position, const char *data, Sci::Position lengthData, bool &startSequence, bool mayCoalesce=true);  	void BeginUndoAction();  	void EndUndoAction();  | 
