summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-01-30 12:37:36 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-01-30 09:26:32 +0100
commite9e1411e4e5948e98d80cc25b2834b7c9d60a8c4 (patch)
tree066da023ee0e21d9196d8fdb3da93e2276f7d19f /compilerplugins
parent589f3c68baa2db69e0795020fdd60926526b2f4a (diff)
Make sure to only dynamic_cast once
Commit 3078020b07e41a6533ba71755d8cc8095bc3c3a7 (sw34bf04: #i109272#: SwXTextPortionEnumeration: fix CrossRefBookmark handling 2011-03-01) moved the dynamic_cast to the general case in lcl_FillBookmark. Later, commit 9b01059f6e2143c5b5b481f3d321309648fc7dd4 (SwXTextPortionEnumeration ctor: avoid dynamic_cast in the common case, 2014-10-28) split it into two: for bookmark start, and for bookmark end. Both will happen, when the bookmark is fully inside the node. This makes sure to only dynamic_cast once, and only when necessary. Change-Id: I3b88504b0cd21a644cf9933143312a4fb570b27a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162732 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'compilerplugins')
0 files changed, 0 insertions, 0 deletions