summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-05-03 22:58:47 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-05-09 08:25:53 +0200
commit8bafae3656f7a0a6b74bb0985403a96f9a3f61be (patch)
tree41d874ea7223f3e59e672d9feb61f4415058055d /oox/source/drawingml
parent5c5d0c4858a123c6aa1dbadcdfd96641eb91283b (diff)
change model::ColorSet to be stored in a shared_ptr in model::Theme
Change-Id: Ic3067f1681c047cd944e64179c568f4e972e0c95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151447 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/themeelementscontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/themeelementscontext.cxx b/oox/source/drawingml/themeelementscontext.cxx
index c0b8eaed4d78..bdc752b98512 100644
--- a/oox/source/drawingml/themeelementscontext.cxx
+++ b/oox/source/drawingml/themeelementscontext.cxx
@@ -327,10 +327,10 @@ ContextHandlerRef ThemeElementsContext::onCreateContext(sal_Int32 nElement, cons
case A_TOKEN( clrScheme ): // CT_ColorScheme
{
OUString aColorSchemeName = rAttribs.getStringDefaulted(XML_name);
- mrTheme.SetColorSet(std::make_unique<model::ColorSet>(aColorSchemeName));
+ mrTheme.setColorSet(std::make_shared<model::ColorSet>(aColorSchemeName));
if (rAttribs.hasAttribute(XML_name))
mrOoxTheme.getClrScheme().SetName(rAttribs.getStringDefaulted(XML_name));
- return new clrSchemeContext(*this, mrOoxTheme.getClrScheme(), *mrTheme.GetColorSet());
+ return new clrSchemeContext(*this, mrOoxTheme.getClrScheme(), *mrTheme.getColorSet());
}
case A_TOKEN( fontScheme ): // CT_FontScheme
{