From 528dc27c3d97846bd0d73ef30e1c9c66daba425a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Aug 2020 10:45:40 +0200 Subject: rename Clear() to dispose() in SvXMLStylesContext to make it "clearer" this is part of the memory cleanup on destruction process Change-Id: I789bdfa0323cf759ed4db2e2a657e73e581d9eed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99990 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/style/xmlstyle.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmloff/source/style') diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index 46c0a43db57d..7bd910df2d99 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -276,7 +276,7 @@ public: } inline void AddStyle( SvXMLStyleContext *pStyle ); - void Clear(); + void dispose(); const SvXMLStyleContext *FindStyleChildContext( XmlStyleFamily nFamily, const OUString& rName, @@ -298,7 +298,7 @@ inline void SvXMLStylesContext_Impl::AddStyle( SvXMLStyleContext *pStyle ) FlushIndex(); } -void SvXMLStylesContext_Impl::Clear() +void SvXMLStylesContext_Impl::dispose() { FlushIndex(); aStyles.clear(); @@ -806,9 +806,9 @@ void SvXMLStylesContext::AddStyle(SvXMLStyleContext& rNew) mpImpl->AddStyle( &rNew ); } -void SvXMLStylesContext::Clear() +void SvXMLStylesContext::dispose() { - mpImpl->Clear(); + mpImpl->dispose(); } void SvXMLStylesContext::CopyAutoStylesToDoc() -- cgit