diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-11 13:28:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-14 07:02:20 +0100 |
commit | 0f257c1dce36b69741a96ec9c10158867c48f610 (patch) | |
tree | fedaaa2041c4a16566aa2c3bff3758a299c677da /sw/source/filter/html/svxcss1.hxx | |
parent | 74db00dc36cec6390329e44636deda7f43e2891a (diff) |
use unique_ptr in CSS1Parser
Change-Id: I4553233f7cf2f54a94154f41e899183490eec3e9
Reviewed-on: https://gerrit.libreoffice.org/66184
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/svxcss1.hxx')
-rw-r--r-- | sw/source/filter/html/svxcss1.hxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/filter/html/svxcss1.hxx b/sw/source/filter/html/svxcss1.hxx index 2c1c70525146..fdc2b1a78a67 100644 --- a/sw/source/filter/html/svxcss1.hxx +++ b/sw/source/filter/html/svxcss1.hxx @@ -202,12 +202,7 @@ class SvxCSS1Parser : public CSS1Parser static constexpr sal_uInt16 gnMinFixLineSpace = MM50/2; // minimum spacing for fixed line spacing rtl_TextEncoding eDfltEnc; - bool bIgnoreFontFamily; - - void ParseProperty( const OUString& rProperty, - const CSS1Expression *pExpr ); - std::vector<sal_uInt16> aWhichMap; // Which-Map of Parser using CSS1Parser::ParseStyleOption; @@ -229,13 +224,13 @@ protected: /// the content of the aItemSet will be copied into all recently /// created Styles. /// Derived classes should not override this method! - virtual bool SelectorParsed( CSS1Selector *pSelector, bool bFirst ) override; + virtual void SelectorParsed( std::unique_ptr<CSS1Selector> pSelector, bool bFirst ) override; /// Will be called for every parsed Property. Adds the item to the /// pItemSet. /// Derived classes should not override this method! - virtual bool DeclarationParsed( const OUString& rProperty, - const CSS1Expression *pExpr ) override; + virtual void DeclarationParsed( const OUString& rProperty, + std::unique_ptr<CSS1Expression> pExpr ) override; public: |