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

--- Comment #9 from ChaoHuang <[email protected]> ---
(In reply to comment #8)
> 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..?

Thanks for the deep analysis. For my view, the function
"SfxStyleSheetBasePool::CreateIterator" is just a tool to reduce the range to
find out specific style in SfxStyleSheetBasePool. I agree with your extended
patch. Thanks!

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

Reply via email to