From 3bd67bd942b5193fa11b0ae458e3daf2926b7602 Mon Sep 17 00:00:00 2001 From: Mat Berchtold Date: Fri, 23 Dec 2022 16:12:22 +1100 Subject: Bug [#2360]. Switch back from dynamic_cast to static_cast for per-line data structures. This undoes change set [eca055]. --- src/Document.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 2d1acd7e1..4f086af4b 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -225,27 +225,27 @@ void Document::RemoveLine(Sci::Line line) { } LineMarkers *Document::Markers() const noexcept { - return dynamic_cast(perLineData[ldMarkers].get()); + return static_cast(perLineData[ldMarkers].get()); } LineLevels *Document::Levels() const noexcept { - return dynamic_cast(perLineData[ldLevels].get()); + return static_cast(perLineData[ldLevels].get()); } LineState *Document::States() const noexcept { - return dynamic_cast(perLineData[ldState].get()); + return static_cast(perLineData[ldState].get()); } LineAnnotation *Document::Margins() const noexcept { - return dynamic_cast(perLineData[ldMargin].get()); + return static_cast(perLineData[ldMargin].get()); } LineAnnotation *Document::Annotations() const noexcept { - return dynamic_cast(perLineData[ldAnnotation].get()); + return static_cast(perLineData[ldAnnotation].get()); } LineAnnotation *Document::EOLAnnotations() const noexcept { - return dynamic_cast(perLineData[ldEOLAnnotation].get()); + return static_cast(perLineData[ldEOLAnnotation].get()); } LineEndType Document::LineEndTypesSupported() const { -- cgit v1.2.3