summaryrefslogtreecommitdiff
path: root/xmloff/inc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-02-25 19:12:23 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-04-08 07:56:19 +0200
commit4f347ebabad6355014889f0a81b107dc774590fe (patch)
tree377e010ec06cf3aed7caf5d04cddf28518fbc676 /xmloff/inc
parentad5756f0529a80fbb537979bcfd9de7a83a69805 (diff)
use shared_ptr for model::Theme instead of unique_ptr
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 <quikee@gmail.com>
Diffstat (limited to 'xmloff/inc')
-rw-r--r--xmloff/inc/XMLThemeContext.hxx8
1 files changed, 6 insertions, 2 deletions
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 <com/sun/star/util/Color.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
-#include <docmodel/theme/Theme.hxx>
#include <docmodel/theme/ColorSet.hxx>
+namespace model
+{
+class Theme;
+}
+
/// Imports the theme
class XMLThemeContext : public SvXMLImportContext
{
css::uno::Reference<css::drawing::XDrawPage> m_xPage;
- model::Theme maTheme;
+ std::shared_ptr<model::Theme> mpTheme;
public:
XMLThemeContext(SvXMLImport& rImport,