diff options
author | David Tardon <dtardon@redhat.com> | 2016-09-06 16:12:40 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-09-09 07:30:30 +0200 |
commit | 32ccb4ea863651c22bf33cc15012971d2a2d2810 (patch) | |
tree | 83d5cdf806d72e9185b9177a558e0d5ebba373ad /include/xmloff/prstylei.hxx | |
parent | upload libzmf 0.0.1 (diff) | |
download | core-32ccb4ea863651c22bf33cc15012971d2a2d2810.tar.gz core-32ccb4ea863651c22bf33cc15012971d2a2d2810.zip |
resolve the snafu with 2 separate refcounted bases
Change-Id: Ia275596d54ea27436f03d01297fb78b6ca09e8a6
Diffstat (limited to 'include/xmloff/prstylei.hxx')
-rw-r--r-- | include/xmloff/prstylei.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/xmloff/prstylei.hxx b/include/xmloff/prstylei.hxx index 081ba36bc87d..9e334ac9d526 100644 --- a/include/xmloff/prstylei.hxx +++ b/include/xmloff/prstylei.hxx @@ -80,7 +80,7 @@ protected: virtual void SetAttribute( sal_uInt16 nPrefixKey, const OUString& rLocalName, const OUString& rValue ) override; - SvXMLStylesContext *GetStyles() { return static_cast<SvXMLStylesContext *>(&mxStyles); } + SvXMLStylesContext *GetStyles() { return static_cast<SvXMLStylesContext *>(mxStyles.get()); } ::std::vector< XMLPropertyState > & GetProperties() { return maProperties; } // Override this method to create a new style. It's called by @@ -106,7 +106,7 @@ public: virtual void FillPropertySet( const css::uno::Reference< css::beans::XPropertySet > & rPropSet ); - const SvXMLStylesContext *GetStyles() const { return static_cast<const SvXMLStylesContext *>(&mxStyles); } + const SvXMLStylesContext *GetStyles() const { return static_cast<const SvXMLStylesContext *>(mxStyles.get()); } const ::std::vector< XMLPropertyState > & GetProperties() const { return maProperties; } const css::uno::Reference< css::style::XStyle >& |