summaryrefslogtreecommitdiff
path: root/include/filter
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-06-05 02:23:01 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-15 07:26:48 +0000
commite6d2827fc385353f07d1703714f715718576c130 (patch)
treecc54f7a561d36d1f0c6fa9311ad09e83e7b0c1e9 /include/filter
parentfc305bb6d656736bedc2f89789e18d8c9a3bbf2c (diff)
tdf#62525 vcl: use cow_wrapper for PPTCharPropSet
Change-Id: I506688a495ac145a25d2094be48ea53497d1e8a8 Reviewed-on: https://gerrit.libreoffice.org/25914 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/filter')
-rw-r--r--include/filter/msfilter/svdfppt.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx
index 6795602308f5..cec7c3db40f3 100644
--- a/include/filter/msfilter/svdfppt.hxx
+++ b/include/filter/msfilter/svdfppt.hxx
@@ -915,8 +915,6 @@ struct PPTParaPropSet
struct ImplPPTCharPropSet
{
- sal_uInt32 mnRefCount;
-
sal_uInt32 mnAttrSet;
sal_uInt16 mnFlags;
sal_uInt32 mnColor;
@@ -928,8 +926,7 @@ struct ImplPPTCharPropSet
sal_uInt16 mnSymbolFont;
ImplPPTCharPropSet()
- : mnRefCount ( 1 )
- , mnAttrSet( 0 )
+ : mnAttrSet( 0 )
, mnFlags( 0 )
, mnColor( 0 )
, mnFont( 0 )
@@ -958,8 +955,6 @@ struct PPTCharPropSet
SvxFieldItem* mpFieldItem;
sal_uInt16 mnLanguage[ 3 ];
- ImplPPTCharPropSet* pCharSet;
-
void SetFont( sal_uInt16 nFont );
void SetColor( sal_uInt32 nColor );
@@ -970,8 +965,13 @@ struct PPTCharPropSet
PPTCharPropSet& operator=( const PPTCharPropSet& rCharPropSet );
+ friend class PPTTextObj;
+ friend class PPTParagraphObj;
+ friend class PPTPortionObj;
+ friend struct PPTStyleTextPropReader;
+
private:
- void ImplMakeUnique();
+ o3tl::cow_wrapper< ImplPPTCharPropSet > mpImplPPTCharPropSet;
};
struct PPTTabEntry