summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-03 11:45:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-03 13:13:06 +0200
commitd2848c44ec0f9b04a0f9b24653ef0273ae7ace97 (patch)
treed3bcb226d2733362312e6b6fe804b7a2d1f166a7 /xmloff/source/text
parent815afb06b78b8fbf83f6a48b89500fb34dc4b40b (diff)
loplugin:constmethod in xmloff
Change-Id: I79ff1001a3ac8fde10de1ab391772e2bfeb6a314 Reviewed-on: https://gerrit.libreoffice.org/78546 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/XMLAutoTextEventExport.cxx2
-rw-r--r--xmloff/source/text/XMLAutoTextEventExport.hxx2
-rw-r--r--xmloff/source/text/XMLIndexBodyContext.hxx4
-rw-r--r--xmloff/source/text/txtimp.cxx6
-rw-r--r--xmloff/source/text/txtparai.cxx6
-rw-r--r--xmloff/source/text/txtparaimphint.hxx2
6 files changed, 11 insertions, 11 deletions
diff --git a/xmloff/source/text/XMLAutoTextEventExport.cxx b/xmloff/source/text/XMLAutoTextEventExport.cxx
index fbda4e38039f..54b2c6062d41 100644
--- a/xmloff/source/text/XMLAutoTextEventExport.cxx
+++ b/xmloff/source/text/XMLAutoTextEventExport.cxx
@@ -153,7 +153,7 @@ ErrCode XMLAutoTextEventExport::exportDoc( enum XMLTokenEnum )
return ERRCODE_NONE;
}
-bool XMLAutoTextEventExport::hasEvents()
+bool XMLAutoTextEventExport::hasEvents() const
{
// TODO: provide full implementation that check for presence of events
return xEvents.is();
diff --git a/xmloff/source/text/XMLAutoTextEventExport.hxx b/xmloff/source/text/XMLAutoTextEventExport.hxx
index ec2987fd96f1..99386c8239bb 100644
--- a/xmloff/source/text/XMLAutoTextEventExport.hxx
+++ b/xmloff/source/text/XMLAutoTextEventExport.hxx
@@ -67,7 +67,7 @@ private:
enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID ) override;
/// does the document have any events ?
- bool hasEvents();
+ bool hasEvents() const;
/// export the events element
void exportEvents();
diff --git a/xmloff/source/text/XMLIndexBodyContext.hxx b/xmloff/source/text/XMLIndexBodyContext.hxx
index d7b00c59ae41..0c4aeffdf989 100644
--- a/xmloff/source/text/XMLIndexBodyContext.hxx
+++ b/xmloff/source/text/XMLIndexBodyContext.hxx
@@ -50,7 +50,7 @@ public:
virtual ~XMLIndexBodyContext() override;
/// return whether any content elements were encountered
- inline bool HasContent();
+ inline bool HasContent() const;
protected:
@@ -60,7 +60,7 @@ protected:
const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList ) override;
};
-inline bool XMLIndexBodyContext::HasContent()
+inline bool XMLIndexBodyContext::HasContent() const
{
return bHasContent;
}
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index ac9a144953f7..a5f3fe0b3b86 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -2663,7 +2663,7 @@ OUString XMLTextImportHelper::getCurrentFieldType()
}
}
-bool XMLTextImportHelper::hasCurrentFieldCtx()
+bool XMLTextImportHelper::hasCurrentFieldCtx() const
{
return !m_xImpl->m_FieldStack.empty();
}
@@ -2862,7 +2862,7 @@ void XMLTextImportHelper::SetChangesProtectionKey(const Sequence<sal_Int8> &)
}
-OUString const & XMLTextImportHelper::GetOpenRedlineId()
+OUString const & XMLTextImportHelper::GetOpenRedlineId() const
{
return m_xImpl->m_sOpenRedlineIdentifier;
}
@@ -2883,7 +2883,7 @@ XMLTextImportHelper::SetCellParaStyleDefault(OUString const& rNewValue)
m_xImpl->m_sCellParaStyleDefault = rNewValue;
}
-OUString const& XMLTextImportHelper::GetCellParaStyleDefault()
+OUString const& XMLTextImportHelper::GetCellParaStyleDefault() const
{
return m_xImpl->m_sCellParaStyleDefault;
}
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 287b26722781..e4f25cfa86cb 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -88,7 +88,7 @@ public:
m_Hints.push_back(std::move(pHint));
}
- std::vector<std::unique_ptr<XMLHint_Impl>> const& GetHints()
+ std::vector<std::unique_ptr<XMLHint_Impl>> const& GetHints() const
{
return m_Hints;
}
@@ -268,7 +268,7 @@ public:
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const OUString& rLocalName,
- XMLHints_Impl& rHints,
+ const XMLHints_Impl& rHints,
const Reference<xml::sax::XAttributeList> & xAttrList);
};
@@ -277,7 +277,7 @@ XMLEndReferenceContext_Impl::XMLEndReferenceContext_Impl(
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const OUString& rLocalName,
- XMLHints_Impl& rHints,
+ const XMLHints_Impl& rHints,
const Reference<xml::sax::XAttributeList> & xAttrList) :
SvXMLImportContext(rImport, nPrefix, rLocalName)
{
diff --git a/xmloff/source/text/txtparaimphint.hxx b/xmloff/source/text/txtparaimphint.hxx
index 56e8823152e9..ca9e887e8eed 100644
--- a/xmloff/source/text/txtparaimphint.hxx
+++ b/xmloff/source/text/txtparaimphint.hxx
@@ -60,7 +60,7 @@ public:
// We don't use virtual methods to differ between the sub classes,
// because this seems to be too expensive if compared to inline methods.
sal_uInt8 GetType() const { return nType; }
- bool IsReference() { return XML_HINT_REFERENCE==nType; }
+ bool IsReference() const { return XML_HINT_REFERENCE==nType; }
};
class XMLStyleHint_Impl : public XMLHint_Impl