summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /lingucomponent
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/languageguessing/guess.cxx12
-rw-r--r--lingucomponent/source/languageguessing/guess.hxx6
2 files changed, 3 insertions, 15 deletions
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx
index 1e3cb3e33acf..63c11a54d813 100644
--- a/lingucomponent/source/languageguessing/guess.cxx
+++ b/lingucomponent/source/languageguessing/guess.cxx
@@ -108,20 +108,8 @@ Guess::~Guess()
{
}
-string Guess::GetLanguage()
-{
- return language_str;
-}
-string Guess::GetCountry()
-{
- return country_str;
-}
-string Guess::GetEncoding()
-{
- return encoding_str;
-}
bool Guess::operator==(string lang)
{
diff --git a/lingucomponent/source/languageguessing/guess.hxx b/lingucomponent/source/languageguessing/guess.hxx
index 43cbcf65e84c..65febf59e03b 100644
--- a/lingucomponent/source/languageguessing/guess.hxx
+++ b/lingucomponent/source/languageguessing/guess.hxx
@@ -48,9 +48,9 @@ class Guess{
~Guess();
- string GetLanguage();
- string GetCountry();
- string GetEncoding();
+ string GetLanguage() { return language_str;}
+ string GetCountry() { return country_str;}
+ string GetEncoding() { return encoding_str;}
bool operator==(string lang);