aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorMat Berchtold <unknown>2022-12-23 16:12:22 +1100
committerMat Berchtold <unknown>2022-12-23 16:12:22 +1100
commit3bd67bd942b5193fa11b0ae458e3daf2926b7602 (patch)
treea093135c2209cbe9eb9ffe7c7e5d2dc9c244b125 /src/Document.cxx
parent61508c02e7e2ea4de857a2be604e1d80222083c1 (diff)
downloadscintilla-mirror-3bd67bd942b5193fa11b0ae458e3daf2926b7602.tar.gz
Bug [#2360]. Switch back from dynamic_cast to static_cast for per-line data
structures. This undoes change set [eca055].
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx12
1 files changed, 6 insertions, 6 deletions
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<LineMarkers *>(perLineData[ldMarkers].get());
+ return static_cast<LineMarkers *>(perLineData[ldMarkers].get());
}
LineLevels *Document::Levels() const noexcept {
- return dynamic_cast<LineLevels *>(perLineData[ldLevels].get());
+ return static_cast<LineLevels *>(perLineData[ldLevels].get());
}
LineState *Document::States() const noexcept {
- return dynamic_cast<LineState *>(perLineData[ldState].get());
+ return static_cast<LineState *>(perLineData[ldState].get());
}
LineAnnotation *Document::Margins() const noexcept {
- return dynamic_cast<LineAnnotation *>(perLineData[ldMargin].get());
+ return static_cast<LineAnnotation *>(perLineData[ldMargin].get());
}
LineAnnotation *Document::Annotations() const noexcept {
- return dynamic_cast<LineAnnotation *>(perLineData[ldAnnotation].get());
+ return static_cast<LineAnnotation *>(perLineData[ldAnnotation].get());
}
LineAnnotation *Document::EOLAnnotations() const noexcept {
- return dynamic_cast<LineAnnotation *>(perLineData[ldEOLAnnotation].get());
+ return static_cast<LineAnnotation *>(perLineData[ldEOLAnnotation].get());
}
LineEndType Document::LineEndTypesSupported() const {