diff options
Diffstat (limited to 'src/PerLine.cxx')
| -rw-r--r-- | src/PerLine.cxx | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 466d2fb31..5408c0258 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -125,6 +125,10 @@ void MarkerHandleSet::CombineWith(MarkerHandleSet *other) {  }  LineMarkers::~LineMarkers() { +	Init(); +} + +void LineMarkers::Init() {  	for (int line = 0; line < markers.Length(); line++) {  		delete markers[line];  		markers[line] = 0; @@ -227,6 +231,10 @@ void LineMarkers::DeleteMarkFromHandle(int markerHandle) {  LineLevels::~LineLevels() {  } +void LineLevels::Init() { +	levels.DeleteAll(); +} +  void LineLevels::InsertLine(int line) {  	if (levels.Length()) {  		int level = SC_FOLDLEVELBASE; @@ -281,6 +289,10 @@ int LineLevels::GetLevel(int line) {  LineState::~LineState() {  } +void LineState::Init() { +	lineStates.DeleteAll(); +} +  void LineState::InsertLine(int line) {  	if (lineStates.Length()) {  		lineStates.EnsureLength(line); @@ -339,6 +351,10 @@ LineAnnotation::~LineAnnotation() {  	ClearAll();  } +void LineAnnotation::Init() { +	ClearAll(); +} +  void LineAnnotation::InsertLine(int line) {  	if (annotations.Length()) {  		annotations.Insert(line, 0); | 
