summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 10:33:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 13:47:45 +0200
commit7a1bf5c10deb5f9d2e5b282dac9493d84aede659 (patch)
tree834b78658f755ac939a35cb0373c882b98bfa202 /writerfilter/source/rtftok
parent1141b6b0ce6581b587e174c9bbdddb88d36ea8c2 (diff)
loplugin:constmethod in writerfilter
Change-Id: I1e1c4e574e910ef9683520ae950b14eb4ebbc63f Reviewed-on: https://gerrit.libreoffice.org/79784 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/rtftok')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.hxx4
-rw-r--r--writerfilter/source/rtftok/rtflookahead.hxx4
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.hxx4
-rw-r--r--writerfilter/source/rtftok/rtftokenizer.hxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index 0c69cc9a4563..5ee84d791e5c 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -709,7 +709,7 @@ public:
Stream& Mapper() { return *m_pMapperStream; }
void setSuperstream(RTFDocumentImpl* pSuperstream);
- const css::uno::Reference<css::lang::XMultiServiceFactory>& getModelFactory()
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& getModelFactory() const
{
return m_xModelFactory;
}
@@ -723,7 +723,7 @@ public:
/// Send NS_ooxml::LN_settings_settings to dmapper.
void outputSettingsTable();
/// If the initial paragraph is started.
- bool getFirstRun() { return m_bFirstRun; }
+ bool getFirstRun() const { return m_bFirstRun; }
/// If we need to add a dummy paragraph before a section break.
void setNeedPar(bool bNeedPar);
/// Return the dmapper index of an RTF index for fonts.
diff --git a/writerfilter/source/rtftok/rtflookahead.hxx b/writerfilter/source/rtftok/rtflookahead.hxx
index 5d9bbab16173..52a4b3b14a5e 100644
--- a/writerfilter/source/rtftok/rtflookahead.hxx
+++ b/writerfilter/source/rtftok/rtflookahead.hxx
@@ -46,8 +46,8 @@ public:
void setSkipUnknown(bool bSkipUnknown) override;
void finishSubstream() override;
bool isSubstream() const override;
- bool hasTable() { return m_bHasTable; }
- bool hasColumns() { return m_bHasColumns; }
+ bool hasTable() const { return m_bHasTable; }
+ bool hasColumns() const { return m_bHasColumns; }
private:
tools::SvRef<RTFTokenizer> m_pTokenizer;
diff --git a/writerfilter/source/rtftok/rtfsdrimport.hxx b/writerfilter/source/rtftok/rtfsdrimport.hxx
index cdf088857466..57ce69e6d2e8 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.hxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.hxx
@@ -84,8 +84,8 @@ public:
void pushParent(css::uno::Reference<css::drawing::XShapes> const& xParent);
/// Pop the current group shape from the parent stack.
void popParent();
- css::uno::Reference<css::drawing::XShape> const& getCurrentShape() { return m_xShape; }
- bool isFakePict() { return m_bFakePict; }
+ css::uno::Reference<css::drawing::XShape> const& getCurrentShape() const { return m_xShape; }
+ bool isFakePict() const { return m_bFakePict; }
private:
void createShape(const OUString& rService, css::uno::Reference<css::drawing::XShape>& xShape,
diff --git a/writerfilter/source/rtftok/rtftokenizer.hxx b/writerfilter/source/rtftok/rtftokenizer.hxx
index e2feb0499019..5c1cd1949328 100644
--- a/writerfilter/source/rtftok/rtftokenizer.hxx
+++ b/writerfilter/source/rtftok/rtftokenizer.hxx
@@ -55,7 +55,7 @@ public:
/// To be invoked by the popState() callback to signal when the importer leaves a group.
void popGroup();
OUString getPosition();
- std::size_t getGroupStart() { return m_nGroupStart; }
+ std::size_t getGroupStart() const { return m_nGroupStart; }
/// To look up additional properties of a math symbol.
static bool lookupMathKeyword(RTFMathSymbol& rSymbol);