From 4f347ebabad6355014889f0a81b107dc774590fe Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sat, 25 Feb 2023 19:12:23 +0900 Subject: use shared_ptr for model::Theme instead of unique_ptr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also change other cases to use the shared_ptr so there is no need to do copies and replace some of docmodel/theme/Theme.hxximports with forward declarations. Change-Id: I4588cb25e05e5f3e535011fffb68a8075b05aecc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147691 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- xmloff/inc/XMLThemeContext.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xmloff/inc') diff --git a/xmloff/inc/XMLThemeContext.hxx b/xmloff/inc/XMLThemeContext.hxx index 50889a0ddf98..b85932d4cb41 100644 --- a/xmloff/inc/XMLThemeContext.hxx +++ b/xmloff/inc/XMLThemeContext.hxx @@ -14,14 +14,18 @@ #include #include -#include #include +namespace model +{ +class Theme; +} + /// Imports the theme class XMLThemeContext : public SvXMLImportContext { css::uno::Reference m_xPage; - model::Theme maTheme; + std::shared_ptr mpTheme; public: XMLThemeContext(SvXMLImport& rImport, -- cgit