https://issues.apache.org/ooo/show_bug.cgi?id=120077

--- Comment #8 from Armin Le Grand <[email protected]> ---
ALG->ChaoHuang: pStyle is valid. SfxStyleSheetIterator is tooling to iterate
over existing styles and hands out pointers to existing styles.
SfxStyleSheetBase is even refcounted, so could be hold in rtl::Reference<
SfxStyleSheetBase > when the danger exists that the SfxStyleSheetBase may be
deleted while accessing it. This is not the case here, so using
SfxStyleSheetBase* pStyle is sufficient. It would e.g. be deleted when the
StyleSheetPool gets deleted and is the last instance holding a reference to the
StyleSheet.
More questions (always welcome) or ready to apply this..?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to