summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 12:30:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-29 12:43:37 +0200
commit1820fcbbc38e82daf43ebe759200050ce05b3fe1 (patch)
treef5a494e6a437971ef7b9ae003547d4b156bb8b13 /writerperfect/source/writer
parent66889d5219cec22bd0e654e5a812e90cdd04e59d (diff)
constmethod for accessor-type methods
Apply the constmethod plugin, but only to accessor-type methods, e.g. IsFoo(), GetBar(), etc, where we can be sure of that constifying is a reasonable thing to do. Change-Id: Ibc97f5f359a0992dd1ce2d66f0189f8a0a43d98a Reviewed-on: https://gerrit.libreoffice.org/74269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/writer')
-rw-r--r--writerperfect/source/writer/exp/xmlimp.cxx7
-rw-r--r--writerperfect/source/writer/exp/xmlimp.hxx4
2 files changed, 7 insertions, 4 deletions
diff --git a/writerperfect/source/writer/exp/xmlimp.cxx b/writerperfect/source/writer/exp/xmlimp.cxx
index 1f3960a2dae4..1ed88dffcf73 100644
--- a/writerperfect/source/writer/exp/xmlimp.cxx
+++ b/writerperfect/source/writer/exp/xmlimp.cxx
@@ -376,9 +376,12 @@ XMLImport::XMLImport(const uno::Reference<uno::XComponentContext>& xContext,
mxUriReferenceFactory = uri::UriReferenceFactory::create(mxContext);
}
-const librevenge::RVNGPropertyListVector& XMLImport::GetCoverImages() { return maCoverImages; }
+const librevenge::RVNGPropertyListVector& XMLImport::GetCoverImages() const
+{
+ return maCoverImages;
+}
-const librevenge::RVNGPropertyList& XMLImport::GetMetaData() { return maMetaData; }
+const librevenge::RVNGPropertyList& XMLImport::GetMetaData() const { return maMetaData; }
namespace
{
diff --git a/writerperfect/source/writer/exp/xmlimp.hxx b/writerperfect/source/writer/exp/xmlimp.hxx
index fc6c473a048b..2797168f4609 100644
--- a/writerperfect/source/writer/exp/xmlimp.hxx
+++ b/writerperfect/source/writer/exp/xmlimp.hxx
@@ -128,8 +128,8 @@ public:
std::map<OUString, librevenge::RVNGPropertyList>& GetGraphicStyles();
std::map<OUString, librevenge::RVNGPropertyList>& GetPageLayouts();
std::map<OUString, librevenge::RVNGPropertyList>& GetMasterStyles();
- const librevenge::RVNGPropertyListVector& GetCoverImages();
- const librevenge::RVNGPropertyList& GetMetaData();
+ const librevenge::RVNGPropertyListVector& GetCoverImages() const;
+ const librevenge::RVNGPropertyList& GetMetaData() const;
PopupState FillPopupData(const OUString& rURL, librevenge::RVNGPropertyList& rPropList);
const std::vector<FixedLayoutPage>& GetPageMetafiles() const;
const css::uno::Reference<css::uno::XComponentContext>& GetComponentContext() const;