summaryrefslogtreecommitdiff
path: root/i18npool/source/transliteration
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-26 17:19:24 -0200
committerJan Holesovsky <kendy@suse.cz>2011-12-30 11:52:45 +0100
commita17fb882569046cd9f6940cf2e87435200bb666b (patch)
tree36c9a0bff1d5dd5490c03f36553f5ae7b0f4bdf1 /i18npool/source/transliteration
parent6cfae09e5dafa477db210272949e253d4fb24349 (diff)
Fix for fdo43460 Part XXI getLength() to isEmpty()
Part XXI Modules i18npool, idl, idlc, io, javaunohelper, jvmaccess
Diffstat (limited to 'i18npool/source/transliteration')
-rw-r--r--i18npool/source/transliteration/transliteration_Ignore.cxx4
-rw-r--r--i18npool/source/transliteration/transliteration_body.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/transliteration/transliteration_Ignore.cxx b/i18npool/source/transliteration/transliteration_Ignore.cxx
index 87af9419233f..76f4943af73a 100644
--- a/i18npool/source/transliteration/transliteration_Ignore.cxx
+++ b/i18npool/source/transliteration/transliteration_Ignore.cxx
@@ -74,7 +74,7 @@ transliteration_Ignore::equals(const OUString& str1, sal_Int32 pos1, sal_Int32 n
Sequence< OUString > SAL_CALL
transliteration_Ignore::transliterateRange( const OUString& str1, const OUString& str2 ) throw(RuntimeException)
{
- if (str1.getLength() < 1 || str2.getLength() < 1)
+ if (str1.isEmpty() || str2.isEmpty())
throw RuntimeException();
Sequence< OUString > r(2);
@@ -104,7 +104,7 @@ Sequence< OUString > SAL_CALL
transliteration_Ignore::transliterateRange( const OUString& str1, const OUString& str2,
XTransliteration& t1, XTransliteration& t2 ) throw(RuntimeException)
{
- if (str1.getLength() < 1 || str2.getLength() < 1)
+ if (str1.isEmpty() || str2.isEmpty())
throw RuntimeException();
Sequence< sal_Int32 > offset;
diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx
index 02f9ca14bc59..5b1ddc168b0a 100644
--- a/i18npool/source/transliteration/transliteration_body.cxx
+++ b/i18npool/source/transliteration/transliteration_body.cxx
@@ -280,7 +280,7 @@ static rtl::OUString transliterate_titlecase_Impl(
const OUString aText( inStr.copy( startPos, nCount ) );
OUString aRes;
- if (aText.getLength() > 0)
+ if (!aText.isEmpty())
{
Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
CharacterClassificationImpl aCharClassImpl( xMSF );