summaryrefslogtreecommitdiff
path: root/lingucomponent/source
diff options
context:
space:
mode:
authorGustavo Buzzatti Pacheco <gbpacheco@gmail.com>2012-01-04 11:38:41 -0200
committerLuboš Luňák <l.lunak@suse.cz>2012-01-05 15:07:34 +0100
commitc47f3523338b8e58c1ea18cc583064761f60df90 (patch)
treeb4fa717b768e4445e66a9345119103689f4fdd57 /lingucomponent/source
parent77d05dfa5ba3f81844b093808246d60504cfabda (diff)
Fix for fdo43460 Part XXII getLength() to isEmpty()
Part XXII modules jvmfwk, l10ntools, lingucomponent
Diffstat (limited to 'lingucomponent/source')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx2
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx4
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index c893aaed81b1..8206cf399e48 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -145,7 +145,7 @@ std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char *pDicTy
}
- if (aFormatName.getLength() == 0 || aDicExtension.Len() == 0)
+ if (aFormatName.isEmpty() || aDicExtension.Len() == 0)
return aRes;
// set of languages to remember the language where it is already
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 47b08bfa4ac0..b8f65536e2a7 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -367,7 +367,7 @@ sal_Bool SAL_CALL SpellChecker::isValid( const OUString& rWord, const Locale& rL
{
MutexGuard aGuard( GetLinguMutex() );
- if (rLocale == Locale() || !rWord.getLength())
+ if (rLocale == Locale() || rWord.isEmpty())
return sal_True;
if (!hasLocale( rLocale ))
@@ -488,7 +488,7 @@ Reference< XSpellAlternatives > SAL_CALL SpellChecker::spell(
{
MutexGuard aGuard( GetLinguMutex() );
- if (rLocale == Locale() || !rWord.getLength())
+ if (rLocale == Locale() || rWord.isEmpty())
return NULL;
if (!hasLocale( rLocale ))
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index 76b7a32b1edc..8e9bf582d0bb 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -327,7 +327,7 @@ Sequence < Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL Thes
sal_Int16 nLanguage = LocaleToLanguage( rLocale );
- if (nLanguage == LANGUAGE_NONE || !rTerm.getLength())
+ if (nLanguage == LANGUAGE_NONE || rTerm.isEmpty())
return noMeanings;
if (!hasLocale( rLocale ))