summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/menu/thessubmenu.cxx16
-rw-r--r--sfx2/source/menu/thessubmenu.hxx6
2 files changed, 11 insertions, 11 deletions
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx
index 7c56a19b2d58..ca660af87ffa 100644
--- a/sfx2/source/menu/thessubmenu.cxx
+++ b/sfx2/source/menu/thessubmenu.cxx
@@ -40,19 +40,19 @@
using namespace ::com::sun::star;
OUString SfxThesSubMenuHelper::GetText(
- const String &rLookUpString,
- xub_StrLen nDelimPos )
+ const OUString &rLookUpString,
+ sal_Int32 nDelimPos )
{
- return OUString( rLookUpString.Copy( 0, nDelimPos ) );
+ return rLookUpString.copy( 0, nDelimPos );
}
void SfxThesSubMenuHelper::GetLocale(
lang::Locale /*out */ &rLocale,
- const String &rLookUpString,
- xub_StrLen nDelimPos )
+ const OUString &rLookUpString,
+ sal_Int32 nDelimPos )
{
- String aIsoLang( rLookUpString.Copy( nDelimPos + 1) );
+ OUString aIsoLang( rLookUpString.copy( nDelimPos + 1) );
rLocale = LanguageTag::convertToLocale( aIsoLang);
}
@@ -123,9 +123,9 @@ bool SfxThesSubMenuHelper::GetMeanings(
}
-String SfxThesSubMenuHelper::GetThesImplName( const lang::Locale &rLocale ) const
+OUString SfxThesSubMenuHelper::GetThesImplName( const lang::Locale &rLocale ) const
{
- String aRes;
+ OUString aRes;
uno::Sequence< OUString > aServiceNames = m_xLngMgr->getConfiguredServices(
OUString("com.sun.star.linguistic2.Thesaurus"), rLocale );
// there should be at most one thesaurus configured for each language
diff --git a/sfx2/source/menu/thessubmenu.hxx b/sfx2/source/menu/thessubmenu.hxx
index 2a12c6ae1728..8e7168f42b4f 100644
--- a/sfx2/source/menu/thessubmenu.hxx
+++ b/sfx2/source/menu/thessubmenu.hxx
@@ -42,10 +42,10 @@ public:
SfxThesSubMenuHelper();
~SfxThesSubMenuHelper();
- static OUString GetText( const String &rLookUpString, xub_StrLen nDelimPos );
+ static OUString GetText( const OUString &rLookUpString, sal_Int32 nDelimPos );
// returns the Locale to be used for the selected text when the thesaurus is to be called
- static void GetLocale( css::lang::Locale /*out */ &rLocale, const String &rLookUpString, xub_StrLen nDelimPos );
+ static void GetLocale( css::lang::Locale /*out */ &rLocale, const OUString &rLookUpString, sal_Int32 nDelimPos );
// returns true if the locale is upported by the theasaurus
bool IsSupportedLocale( const css::lang::Locale & rLocale ) const;
@@ -53,7 +53,7 @@ public:
// get the first nMax Synonym entries, even if different meanings need to be evaluated
bool GetMeanings( std::vector< OUString > & rSynonyms, const OUString & rWord, const css::lang::Locale & rLocale, sal_Int16 nMaxSynonms );
- String GetThesImplName( const css::lang::Locale &rLocale ) const;
+ OUString GetThesImplName( const css::lang::Locale &rLocale ) const;
};