diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-09 07:44:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-13 12:27:08 +0100 |
commit | e3290499009492e39e5ddd870d314bb5df494199 (patch) | |
tree | 6ffaa7c199e74791ed1a2aa8a74a0a528509a02f /lotuswordpro | |
parent | 8709c643136eed67bc8f04ab9465b4a76085747c (diff) |
loplugin singlevalfields improvement
checking for casting to void* turns out to mask useful stuff, so
remove that and just deal with a few extra false+
Change-Id: Id9700d7ceda90ba8fdb38aa870f13a7ca3acb668
Reviewed-on: https://gerrit.libreoffice.org/63145
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/inc/xfilter/xffontdecl.hxx | 3 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xffontdecl.cxx | 1 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfstylemanager.cxx | 5 |
3 files changed, 1 insertions, 8 deletions
diff --git a/lotuswordpro/inc/xfilter/xffontdecl.hxx b/lotuswordpro/inc/xfilter/xffontdecl.hxx index 95e273e36ddb..e1a1e615a7cf 100644 --- a/lotuswordpro/inc/xfilter/xffontdecl.hxx +++ b/lotuswordpro/inc/xfilter/xffontdecl.hxx @@ -84,12 +84,9 @@ public: */ const OUString& GetFontFamily() { return m_strFontFamily;} - bool GetFontPitchFixed() { return m_bPitchFixed;} - private: OUString m_strFontName; OUString m_strFontFamily; - bool m_bPitchFixed; }; #endif diff --git a/lotuswordpro/source/filter/xfilter/xffontdecl.cxx b/lotuswordpro/source/filter/xfilter/xffontdecl.cxx index 087ca078baeb..0949ac271456 100644 --- a/lotuswordpro/source/filter/xfilter/xffontdecl.cxx +++ b/lotuswordpro/source/filter/xfilter/xffontdecl.cxx @@ -63,7 +63,6 @@ XFFontDecl::XFFontDecl(const OUString& name, const OUString& family) { m_strFontName = name; m_strFontFamily = family; - m_bPitchFixed = false; } diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx index cf772652b3ba..5c42058f29eb 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx +++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx @@ -320,10 +320,7 @@ void XFStyleManager::ToXml(IXFStream *pStrm) pAttrList->Clear(); pAttrList->AddAttribute( "style:name", fontDecl.GetFontName() ); pAttrList->AddAttribute( "fo:font-family", fontDecl.GetFontFamily() ); - if( fontDecl.GetFontPitchFixed() ) - pAttrList->AddAttribute( "style:font-pitch", "fixed" ); - else - pAttrList->AddAttribute( "style:font-pitch", "variable" ); + pAttrList->AddAttribute( "style:font-pitch", "variable" ); pStrm->StartElement( "style:font-decl" ); pStrm->EndElement( "style:font-decl" ); } |