summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-12 23:01:55 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-05 22:05:44 -0200
commit4e7f9be2c08f81feaceff4b8ea503c03ebc18368 (patch)
tree9359b4fa4c1584b3a8ea2d69b166535e2d1ae4e9 /comphelper/source
parent01292f171cc851ba092510f10a97cd293670829e (diff)
Fix for fdo43460 Part VII getLength() to isEmpty()
Part VII Module comphelper
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/storagehelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index d04a28968aec..c239e54c2a79 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -522,7 +522,7 @@ sal_Bool OStorageHelper::PathHasSegment( const ::rtl::OUString& aPath, const ::r
const sal_Int32 nPathLen = aPath.getLength();
const sal_Int32 nSegLen = aSegment.getLength();
- if ( nSegLen && nPathLen >= nSegLen )
+ if ( !aSegment.isEmpty() && nPathLen >= nSegLen )
{
::rtl::OUString aEndSegment( RTL_CONSTASCII_USTRINGPARAM( "/" ) );
aEndSegment += aSegment;