diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-25 17:16:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-25 17:16:14 +0200 |
commit | 6810f00d09679644ec5971b235a0ec01dc572a8b (patch) | |
tree | 6d09515ab5c58fddb08f1551be75bfe50202947e /sdext/source | |
parent | tdf#100726 - Improve readability of OUString concatanations (diff) | |
download | core-6810f00d09679644ec5971b235a0ec01dc572a8b.tar.gz core-6810f00d09679644ec5971b235a0ec01dc572a8b.zip |
loplugin:staticaccess: Extend loplugin:staticcall to cover all access...
to static members (data, in addition to function) via class member access
syntax. Also covers the (somewhat obscure) access to enumerator members.
Change-Id: Iec54b8df2fdb423c0caf21a0dd0f9fe8fdf33897
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/writertreevisiting.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index 5eae94af8c95..6da5e7ded92c 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -170,7 +170,7 @@ void DrawXmlEmitter::visit( ParagraphElement& elem, const std::list< Element* >: aProps[ "text:style-name" ] = m_rEmitContext.rStyles.getStyleName( elem.StyleId ); } const char* pTagType = "text:p"; - if( elem.Type == elem.Headline ) + if( elem.Type == ParagraphElement::Headline ) pTagType = "text:h"; m_rEmitContext.rEmitter.beginTag( pTagType, aProps ); diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx index 9e946e49f7db..5184ea84668f 100644 --- a/sdext/source/pdfimport/tree/writertreevisiting.cxx +++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx @@ -91,7 +91,7 @@ void WriterXmlEmitter::visit( ParagraphElement& elem, const std::list< Element* aProps[ "text:style-name" ] = m_rEmitContext.rStyles.getStyleName( elem.StyleId ); } const char* pTagType = "text:p"; - if( elem.Type == elem.Headline ) + if( elem.Type == ParagraphElement::Headline ) pTagType = "text:h"; m_rEmitContext.rEmitter.beginTag( pTagType, aProps ); @@ -456,7 +456,7 @@ void WriterXmlOptimizer::visit( ParagraphElement& elem, const std::list< Element // check for larger font if( head_line_height > elem.getLineHeight( m_rProcessor ) ) { - pPrevPara->Type = elem.Headline; + pPrevPara->Type = ParagraphElement::Headline; } else { @@ -469,7 +469,7 @@ void WriterXmlOptimizer::visit( ParagraphElement& elem, const std::list< Element const FontAttributes& rPrevFont = m_rProcessor.getFont( pPrevText->FontId ); const FontAttributes& rThisFont = m_rProcessor.getFont( pThisText->FontId ); if( rPrevFont.isBold && ! rThisFont.isBold ) - pPrevPara->Type = elem.Headline; + pPrevPara->Type = ParagraphElement::Headline; } } } |