diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-04 13:38:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-19 10:45:01 +0200 |
commit | 2f30600296d217751e2b18f3b971c5d0fa2b9f65 (patch) | |
tree | 4f78436dc9f8443efe8a9fdf0b3b4f583928bc62 | |
parent | c97ccd3b3635a53e6bdc07b83c9bf8666b66000a (diff) |
loplugin:constantfunction: linguistic
Change-Id: If9645dc5962432af6912c98649eea9c981fb0ed1
-rw-r--r-- | include/linguistic/lngprophelp.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/lngprophelp.cxx | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx index 3d8763289d7d..60556d9d11d5 100644 --- a/include/linguistic/lngprophelp.hxx +++ b/include/linguistic/lngprophelp.hxx @@ -227,7 +227,7 @@ public: propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& rEvt ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - sal_Int16 GetDefaultNumberOfSuggestions() const; + static sal_Int16 GetDefaultNumberOfSuggestions() { return 16; } sal_Int16 GetMaxNumberOfSuggestions() const { return nResMaxNumberOfSuggestions; } bool IsSpellUpperCase() const { return bResIsSpellUpperCase; } diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx index f9a4437b832c..24c3733f71fe 100644 --- a/linguistic/source/lngprophelp.cxx +++ b/linguistic/source/lngprophelp.cxx @@ -525,12 +525,6 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals ) } } -sal_Int16 PropertyHelper_Spell::GetDefaultNumberOfSuggestions() const -{ - return 16; -} - - static const char *aHP[] = { UPN_HYPH_MIN_LEADING, |