diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-03 16:17:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-04 08:16:00 +0200 |
commit | 2c7aa60b69967a80b7874503f0e9e85546a04cde (patch) | |
tree | ee4771fdf9b558e370859e7f7252be07065e62b1 /filter | |
parent | loplugin:constmethod in formula (diff) | |
download | core-2c7aa60b69967a80b7874503f0e9e85546a04cde.tar.gz core-2c7aa60b69967a80b7874503f0e9e85546a04cde.zip |
loplugin:constmethod in filter
Change-Id: Ib337c45c0ee7de881313b000bf2f8d816fd17884
Reviewed-on: https://gerrit.libreoffice.org/78565
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/flash/swfwriter.hxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/cgm.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/cgm.hxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/chart.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/chart.hxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/ios2met/ios2met.cxx | 4 | ||||
-rw-r--r-- | filter/source/msfilter/mstoolbar.cxx | 4 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 | ||||
-rw-r--r-- | filter/source/svg/svgwriter.hxx | 2 | ||||
-rw-r--r-- | filter/source/xsltfilter/LibXSLTTransformer.hxx | 6 |
10 files changed, 14 insertions, 14 deletions
diff --git a/filter/source/flash/swfwriter.hxx b/filter/source/flash/swfwriter.hxx index 7d65a21a20fa..ecb04e9dd0ce 100644 --- a/filter/source/flash/swfwriter.hxx +++ b/filter/source/flash/swfwriter.hxx @@ -145,7 +145,7 @@ public: void write( SvStream& out ); sal_uInt16 getID() const { return mnId; } - const vcl::Font& getFont() { return maFont; } + const vcl::Font& getFont() const { return maFont; } private: const vcl::Font maFont; diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx index 22240779768d..8122d399eaa6 100644 --- a/filter/source/graphicfilter/icgm/cgm.cxx +++ b/filter/source/graphicfilter/icgm/cgm.cxx @@ -75,7 +75,7 @@ CGM::~CGM() maDefRepSizeList.clear(); }; -sal_uInt32 CGM::GetBackGroundColor() +sal_uInt32 CGM::GetBackGroundColor() const { return pElement ? pElement->aColorTable[ 0 ] : 0; } diff --git a/filter/source/graphicfilter/icgm/cgm.hxx b/filter/source/graphicfilter/icgm/cgm.hxx index 388b5eea3dcc..19773b9117c1 100644 --- a/filter/source/graphicfilter/icgm/cgm.hxx +++ b/filter/source/graphicfilter/icgm/cgm.hxx @@ -133,7 +133,7 @@ class CGM ~CGM(); CGM(css::uno::Reference< css::frame::XModel > const & rModel); - sal_uInt32 GetBackGroundColor(); + sal_uInt32 GetBackGroundColor() const; bool IsValid() const { return mbStatus; }; bool IsFinished() const { return mbIsFinished; }; bool Write( SvStream& rIStm ); diff --git a/filter/source/graphicfilter/icgm/chart.cxx b/filter/source/graphicfilter/icgm/chart.cxx index 845fab4e0d77..439d941c33ad 100644 --- a/filter/source/graphicfilter/icgm/chart.cxx +++ b/filter/source/graphicfilter/icgm/chart.cxx @@ -50,7 +50,7 @@ void CGMChart::ResetAnnotation() mDataNode[ 0 ].nZoneEnum = 0; } -bool CGMChart::IsAnnotation() +bool CGMChart::IsAnnotation() const { return ( mDataNode[ 0 ].nZoneEnum == 0 ); } diff --git a/filter/source/graphicfilter/icgm/chart.hxx b/filter/source/graphicfilter/icgm/chart.hxx index 837015614696..839be2e4a196 100644 --- a/filter/source/graphicfilter/icgm/chart.hxx +++ b/filter/source/graphicfilter/icgm/chart.hxx @@ -74,7 +74,7 @@ class CGMChart final void InsertTextEntry( std::unique_ptr<TextEntry> ); void ResetAnnotation(); - bool IsAnnotation(); + bool IsAnnotation() const; }; #endif diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx index f1d8e5661083..236506aff7cc 100644 --- a/filter/source/graphicfilter/ios2met/ios2met.cxx +++ b/filter/source/graphicfilter/ios2met/ios2met.cxx @@ -378,7 +378,7 @@ private: Color GetPaletteColor(sal_uInt32 nIndex); - bool IsLineInfo(); + bool IsLineInfo() const; void DrawPolyLine( const tools::Polygon& rPolygon ); void DrawPolygon( const tools::Polygon& rPolygon ); void DrawPolyPolygon( const tools::PolyPolygon& rPolygon ); @@ -491,7 +491,7 @@ OS2METReader::~OS2METReader() } } -bool OS2METReader::IsLineInfo() +bool OS2METReader::IsLineInfo() const { return ( ! ( aLineInfo.IsDefault() || ( aLineInfo.GetStyle() == LineStyle::NONE ) || ( pVirDev->GetLineColor() == COL_TRANSPARENT ) ) ); } diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx index d8ddc076caec..7d8e25cbdeed 100644 --- a/filter/source/msfilter/mstoolbar.cxx +++ b/filter/source/msfilter/mstoolbar.cxx @@ -437,7 +437,7 @@ TBCExtraInfo::Print( FILE* fp ) #endif OUString const & -TBCExtraInfo::getOnAction() +TBCExtraInfo::getOnAction() const { return wstrOnAction.getString(); } @@ -764,7 +764,7 @@ bool TB::Read(SvStream &rS) } -bool TB::IsEnabled() +bool TB::IsEnabled() const { return ( bFlags & 0x01 ) != 0x01; } diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index a9db1f9bfec4..3d47c924bc66 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5456,7 +5456,7 @@ PPTPortionObj::~PPTPortionObj() { } -bool PPTPortionObj::HasTabulator() +bool PPTPortionObj::HasTabulator() const { bool bRetValue = false; sal_Int32 nCount; diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx index f6ea72fd539c..f0271ed4090b 100644 --- a/filter/source/svg/svgwriter.hxx +++ b/filter/source/svg/svgwriter.hxx @@ -265,7 +265,7 @@ class SVGTextWriter final bool nextParagraph(); bool nextTextPortion(); - bool isTextShapeStarted() { return mbIsTextShapeStarted; } + bool isTextShapeStarted() const { return mbIsTextShapeStarted; } void startTextShape(); void endTextShape(); void startTextParagraph(); diff --git a/filter/source/xsltfilter/LibXSLTTransformer.hxx b/filter/source/xsltfilter/LibXSLTTransformer.hxx index 2b31a87914bd..d646d5dbfc43 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.hxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.hxx @@ -162,13 +162,13 @@ namespace XSLT error(const OUString& msg); const OString& - getStyleSheetURL() { return m_styleSheetURL; } + getStyleSheetURL() const { return m_styleSheetURL; } const ::std::map<const char*, OString>& - getParameters() { return m_parameters; } + getParameters() const { return m_parameters; } const css::uno::Reference<css::uno::XComponentContext>& - getComponentContext() { + getComponentContext() const { return m_xContext; } |