From 1820fcbbc38e82daf43ebe759200050ce05b3fe1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 12:30:40 +0200 Subject: 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 --- lingucomponent/source/languageguessing/guess.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/languageguessing/guess.hxx b/lingucomponent/source/languageguessing/guess.hxx index d85db86900f8..e68d852a53a6 100644 --- a/lingucomponent/source/languageguessing/guess.hxx +++ b/lingucomponent/source/languageguessing/guess.hxx @@ -43,8 +43,8 @@ class Guess final { */ Guess(const char * guess_str); - const string& GetLanguage() { return language_str;} - const string& GetCountry() { return country_str;} + const string& GetLanguage() const { return language_str;} + const string& GetCountry() const { return country_str;} private: string language_str; -- cgit