diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-11-01 12:40:13 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-11-01 12:40:13 +1100 |
| commit | 16b9ac336b766f1fd394d77d40611a4875162930 (patch) | |
| tree | aea52a4196eefcd583a6d621727a91e5b8329550 /src/PerLine.cxx | |
| parent | eccf9236ba151b0ca896af5abf4c2fbc166b587f (diff) | |
| download | scintilla-mirror-16b9ac336b766f1fd394d77d40611a4875162930.tar.gz | |
Backport: Avoid calling vector::shrink_to_fit in destructors as it is not noexcept.
The destructors of the members will ensure that everything is correct.
Potential unhandled exceptions reported by Coverity.
Backport of changeset 7749:329a8e9986a0.
Diffstat (limited to 'src/PerLine.cxx')
| -rw-r--r-- | src/PerLine.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 537512290..d81f46d3b 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -80,7 +80,6 @@ void MarkerHandleSet::CombineWith(MarkerHandleSet *other) { } LineMarkers::~LineMarkers() { - markers.DeleteAll(); } void LineMarkers::Init() { @@ -310,7 +309,6 @@ struct AnnotationHeader { }; LineAnnotation::~LineAnnotation() { - ClearAll(); } void LineAnnotation::Init() { @@ -433,7 +431,6 @@ int LineAnnotation::Lines(Sci::Line line) const { } LineTabstops::~LineTabstops() { - tabstops.DeleteAll(); } void LineTabstops::Init() { |
