diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 09:23:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 14:25:55 +0200 |
commit | d53144e9d185b7b0b41d887c689c13bf27cd9906 (patch) | |
tree | 23e5b16930558e2642e6f2c81caf05ddea61eae2 /svtools | |
parent | d4f9f4b2d57c4f51c026fd114934dd63f4ece13e (diff) |
loplugin:returnconstval in svtools
Change-Id: I2d1d9e0ed8e109ed0be4d7fb78d93790ae41177f
Reviewed-on: https://gerrit.libreoffice.org/78052
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/langtab.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index c10561f8f87c..1e04933cd377 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -47,7 +47,7 @@ public: SvtLanguageTableImpl(); bool HasType( const LanguageType eType ) const; - const OUString GetString( const LanguageType eType ) const; + OUString GetString( const LanguageType eType ) const; LanguageType GetType( const OUString& rStr ) const; sal_uInt32 GetEntryCount() const; LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const; @@ -76,7 +76,7 @@ namespace { struct theLanguageTable : public rtl::Static< SvtLanguageTableImpl, theLanguageTable > {}; } -const OUString ApplyLreOrRleEmbedding( const OUString &rText ) +OUString ApplyLreOrRleEmbedding( const OUString &rText ) { const sal_Int32 nLen = rText.getLength(); if (nLen == 0) @@ -207,7 +207,7 @@ bool SvtLanguageTable::HasLanguageType( const LanguageType eType ) return theLanguageTable::get().HasType( eType ); } -const OUString SvtLanguageTableImpl::GetString( const LanguageType eType ) const +OUString SvtLanguageTableImpl::GetString( const LanguageType eType ) const { LanguageType eLang = MsLangId::getReplacementForObsoleteLanguage( eType ); sal_uInt32 nPos = FindIndex(eLang); |