summaryrefslogtreecommitdiff
path: root/linguistic/source/misc2.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-27 11:08:04 -0200
committerJan Holesovsky <kendy@suse.cz>2011-12-30 12:37:17 +0100
commitc3fc5c9c9b17cef63fa7c77a39a0971c27a004f9 (patch)
tree648b7a26cfabb4c56ae5558de926ed9e963da066 /linguistic/source/misc2.cxx
parenta17fb882569046cd9f6940cf2e87435200bb666b (diff)
Fix for fdo43460 Part XXIII getLength() to isEmpty()
Part XXIII Modules linguistic
Diffstat (limited to 'linguistic/source/misc2.cxx')
-rw-r--r--linguistic/source/misc2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx
index 167a116259c4..8ca3cc0bdca0 100644
--- a/linguistic/source/misc2.cxx
+++ b/linguistic/source/misc2.cxx
@@ -109,12 +109,12 @@ static uno::Sequence< rtl::OUString > GetMultiPaths_Impl(
// 2. all user pathes
// 3. all internal pathes
sal_Int32 nMaxEntries = aInternalPaths.getLength() + aUserPaths.getLength();
- if (aWritablePath.getLength() > 0)
+ if (!aWritablePath.isEmpty())
++nMaxEntries;
aRes.realloc( nMaxEntries );
rtl::OUString *pRes = aRes.getArray();
sal_Int32 nCount = 0; // number of actually added entries
- if ((nPathFlags & PATH_FLAG_WRITABLE) && aWritablePath.getLength() != 0)
+ if ((nPathFlags & PATH_FLAG_WRITABLE) && !aWritablePath.isEmpty())
pRes[ nCount++ ] = aWritablePath;
for (int i = 0; i < 2; ++i)
{
@@ -124,7 +124,7 @@ static uno::Sequence< rtl::OUString > GetMultiPaths_Impl(
{
const bool bAddUser = &rPathSeq == &aUserPaths && (nPathFlags & PATH_FLAG_USER);
const bool bAddInternal = &rPathSeq == &aInternalPaths && (nPathFlags & PATH_FLAG_INTERNAL);
- if ((bAddUser || bAddInternal) && pPathSeq[k].getLength() > 0)
+ if ((bAddUser || bAddInternal) && !pPathSeq[k].isEmpty())
pRes[ nCount++ ] = pPathSeq[k];
}
}