Files
odfstudio/sw/source/core
Neil Roberts 6839513b30 unochart: Use m_pTableCursor.get() instead of &*m_pTableCursor
If m_pTableCursor is null then the initial deref in &* is undefined
behaviour, even though the resulting reference is only used to get an
address. The compiler might take advantage of this to assume that the
pointer is never null. For the dynamic_cast it might then always deref
the pointer to access the vtable without checking for null.
m_pTableCursor can be null if the SwChartDataSequence is disposed.

I don’t know whether this results in any bugs in practice, but either
way using get() is easier to understand and shouldn’t have any
performance impact, so we might as well use it.

Change-Id: I9566f4be3345dacb0af3add88cbb3fe2680ff0ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211747
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-10-05 14:12:18 +02:00
..
2026-10-03 10:10:33 +02:00
2026-10-03 10:10:33 +02:00
2026-06-05 21:52:31 +02:00
2026-08-25 14:27:16 +02:00
2026-08-23 11:00:24 +02:00
…