summaryrefslogtreecommitdiffstats
path: root/include/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-03 16:17:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-04 08:16:00 +0200
commit2c7aa60b69967a80b7874503f0e9e85546a04cde (patch)
treeee4771fdf9b558e370859e7f7252be07065e62b1 /include/filter
parentloplugin:constmethod in formula (diff)
downloadcore-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 'include/filter')
-rw-r--r--include/filter/msfilter/escherex.hxx6
-rw-r--r--include/filter/msfilter/mstoolbar.hxx20
-rw-r--r--include/filter/msfilter/svdfppt.hxx2
3 files changed, 14 insertions, 14 deletions
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx
index 729e98835a63..c723318ebff6 100644
--- a/include/filter/msfilter/escherex.hxx
+++ b/include/filter/msfilter/escherex.hxx
@@ -600,7 +600,7 @@ public:
bool GetPrefSize( const sal_uInt32 nBlibId, Size& rSize, MapMode& rMapMode );
void SetBaseURI( const OUString& rBaseURI ) { maBaseURI = rBaseURI; };
- const OUString& GetBaseURI() { return maBaseURI; };
+ const OUString& GetBaseURI() const { return maBaseURI; };
EscherGraphicProvider( EscherGraphicProviderFlags nFlags = EscherGraphicProviderFlags::NONE );
virtual ~EscherGraphicProvider();
@@ -922,7 +922,7 @@ public:
{
mpHyperlinkRecord.reset( pStream );
}
- const std::unique_ptr< SvMemoryStream >& getHyperlinkRecord() { return mpHyperlinkRecord; }
+ const std::unique_ptr< SvMemoryStream >& getHyperlinkRecord() const { return mpHyperlinkRecord; }
};
class EscherExHostAppData
@@ -1125,7 +1125,7 @@ public:
void InsertAtPersistOffset( sal_uInt32 nKey, sal_uInt32 nValue ); // nValue is being inserted into the Stream where it's appropriate (overwrite mode), without that the
// current StreamPosition changes
void SetEditAs( const OUString& rEditAs );
- const OUString& GetEditAs() { return mEditAs; }
+ const OUString& GetEditAs() const { return mEditAs; }
SvStream& GetStream() const { return *mpOutStrm; }
sal_uLong GetStreamPos() const { return mpOutStrm->Tell(); }
diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx
index 810306149b89..3e546c8dcdb1 100644
--- a/include/filter/msfilter/mstoolbar.hxx
+++ b/include/filter/msfilter/mstoolbar.hxx
@@ -58,7 +58,7 @@ public:
void setMSOCommandMap( MSOCommandConvertor* pCnvtr ) { pMSOCmdConvertor.reset( pCnvtr ); }
css::uno::Reference< css::ui::XUIConfigurationManager > getCfgManager();
- const css::uno::Reference< css::ui::XUIConfigurationManager >& getAppCfgManager() { return m_xAppCfgMgr;}
+ const css::uno::Reference< css::ui::XUIConfigurationManager >& getAppCfgManager() const { return m_xAppCfgMgr;}
static css::uno::Any createCommandFromMacro( const OUString& sCmd );
@@ -93,7 +93,7 @@ public:
#ifdef DEBUG_FILTER_MSTOOLBAR
virtual void Print( FILE* ) {} // #FIXME remove this an implement the debug routines in all the classes below to enable some sort of readable output
#endif
- sal_uInt32 GetOffset() { return nOffSet; }
+ sal_uInt32 GetOffset() const { return nOffSet; }
};
class Indent
@@ -117,7 +117,7 @@ class MSFILTER_DLLPUBLIC WString : public TBBase
public:
WString(){};
bool Read(SvStream &rS) override;
- const OUString& getString(){ return sString; }
+ const OUString& getString() const { return sString; }
};
class MSFILTER_DLLPUBLIC TBCExtraInfo : public TBBase
@@ -138,7 +138,7 @@ public:
#ifdef DEBUG_FILTER_MSTOOLBAR
virtual void Print( FILE* ) override;
#endif
- OUString const & getOnAction();
+ OUString const & getOnAction() const;
};
class MSFILTER_DLLPUBLIC TBCGeneralInfo : public TBBase
@@ -267,13 +267,13 @@ public:
sal_uInt8 getTct() const { return tct; }
sal_uInt16 getTcID() const { return tcid; }
- bool isVisible() { return !( bFlagsTCR & 0x1 ); }
- bool isBeginGroup() { return ( bFlagsTCR & 0x2 ) != 0; }
+ bool isVisible() const { return !( bFlagsTCR & 0x1 ); }
+ bool isBeginGroup() const { return ( bFlagsTCR & 0x2 ) != 0; }
bool Read(SvStream &rS) override;
#ifdef DEBUG_FILTER_MSTOOLBAR
virtual void Print( FILE* ) override;
#endif
- sal_uInt32 getTbct() { return tbct; };
+ sal_uInt32 getTbct() const { return tbct; };
};
class MSFILTER_DLLPUBLIC TBCData : public TBBase
@@ -310,10 +310,10 @@ public:
#ifdef DEBUG_FILTER_MSTOOLBAR
virtual void Print( FILE* ) override;
#endif
- sal_Int16 getcCL(){ return cCL; }
+ sal_Int16 getcCL() const { return cCL; }
WString& getName(){ return name; }
- bool IsEnabled();
- bool IsMenuToolbar(){ return ( ( ltbtr & 0x2000000 ) == 0x2000000 ); }
+ bool IsEnabled() const;
+ bool IsMenuToolbar() const { return ( ( ltbtr & 0x2000000 ) == 0x2000000 ); }
};
class MSFILTER_DLLPUBLIC SRECT : public TBBase
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx
index 3261c25f4a8c..7252edf58dcb 100644
--- a/include/filter/msfilter/svdfppt.hxx
+++ b/include/filter/msfilter/svdfppt.hxx
@@ -1131,7 +1131,7 @@ public:
const PPTTextObj* pTextObj
);
sal_uInt32 Count() const { return mpFieldItem ? 1 : maString.getLength(); };
- bool HasTabulator();
+ bool HasTabulator() const;
};
class MSFILTER_DLLPUBLIC PPTParagraphObj