From 83fd71e041f2c0520c4cc213e238c7f3c674c5a3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Oct 2017 14:07:42 +0200 Subject: loplugin:constmethod in tools,sax,UnoControls Change-Id: Ie05e44e2a4019e2549843961ebfa04fef7b7aeb4 Reviewed-on: https://gerrit.libreoffice.org/43767 Tested-by: Jenkins Reviewed-by: Noel Grandin --- l10ntools/inc/cfgmerge.hxx | 4 ++-- l10ntools/inc/xrmmerge.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'l10ntools/inc') diff --git a/l10ntools/inc/cfgmerge.hxx b/l10ntools/inc/cfgmerge.hxx index c3eb1cd1cf02..d2ec28475d39 100644 --- a/l10ntools/inc/cfgmerge.hxx +++ b/l10ntools/inc/cfgmerge.hxx @@ -54,8 +54,8 @@ public: : sTagType( rTag ), sIdentifier( rId ) {} - const OString &GetTagType() { return sTagType; } - const OString &GetIdentifier() { return sIdentifier; } + const OString &GetTagType() const { return sTagType; } + const OString &GetIdentifier() const { return sIdentifier; } }; diff --git a/l10ntools/inc/xrmmerge.hxx b/l10ntools/inc/xrmmerge.hxx index e599a59fcbe2..0000265cac35 100644 --- a/l10ntools/inc/xrmmerge.hxx +++ b/l10ntools/inc/xrmmerge.hxx @@ -56,7 +56,7 @@ protected: const OString &rCloseTag )=0; - const OString& GetGID() { return sGID; } + const OString& GetGID() const { return sGID; } public: XRMResParser(); @@ -65,7 +65,7 @@ public: void Execute( int nToken, char * pToken ); void SetError() { bError = true; } - bool GetError() { return bError; } + bool GetError() const { return bError; } }; -- cgit