summaryrefslogtreecommitdiff
path: root/sw/inc/swcrsr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-10-29 11:10:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-29 18:10:23 +0200
commit32b0b79c3f71e4aca995aa92ee519d93a3ca2b3b (patch)
tree47ed523bd18eeb29771941046335dd1d83d82348 /sw/inc/swcrsr.hxx
parentebe2a3e948df1622f3532afeeaeb31d1066d40c2 (diff)
tdf#126788 replace dynamic_cast with static_cast
no need to dynamic_cast here Change-Id: I36b2c20c0f8743c39a8b8b0f14a9eb2ee6effee7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142015 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/swcrsr.hxx')
-rw-r--r--sw/inc/swcrsr.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index 486507b23c4e..e2b5ad10966a 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -216,10 +216,10 @@ public:
sal_Int32 GetCursorRowSpanOffset() const { return m_nRowSpanOffset; }
- SwCursor* GetNext() { return dynamic_cast<SwCursor *>(GetNextInRing()); }
- const SwCursor* GetNext() const { return dynamic_cast<SwCursor const *>(GetNextInRing()); }
- SwCursor* GetPrev() { return dynamic_cast<SwCursor *>(GetPrevInRing()); }
- const SwCursor* GetPrev() const { return dynamic_cast<SwCursor const *>(GetPrevInRing()); }
+ SwCursor* GetNext() { return static_cast<SwCursor *>(GetNextInRing()); }
+ const SwCursor* GetNext() const { return static_cast<SwCursor const *>(GetNextInRing()); }
+ SwCursor* GetPrev() { return static_cast<SwCursor *>(GetPrevInRing()); }
+ const SwCursor* GetPrev() const { return static_cast<SwCursor const *>(GetPrevInRing()); }
};
/**