summaryrefslogtreecommitdiff
path: root/svtools/source/misc/imagemgr.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-13 19:13:55 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-13 19:13:55 -0200
commitad6ce5e938ce9d78bed9ce6dead5fa087de49c63 (patch)
tree668b0b73f6aa515e4303b946136c155f9d38ae4e /svtools/source/misc/imagemgr.cxx
parent38423e0ad2a8e2a902aeb37391aef0b543c09d68 (diff)
Fix for fdo43460 Part XXXVII getLength() to isEmpty()
Part XXXVII Modules svtools
Diffstat (limited to 'svtools/source/misc/imagemgr.cxx')
-rw-r--r--svtools/source/misc/imagemgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index c708a1d4f0f9..d35fceed14e9 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -241,7 +241,7 @@ static String GetImageExtensionByFactory_Impl( const String& rURL )
::rtl::OUString aInternalType = xTypeDetector->queryTypeByURL( rURL );
::com::sun::star::uno::Reference < ::com::sun::star::container::XNameAccess > xAccess( xTypeDetector, ::com::sun::star::uno::UNO_QUERY );
::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue > aTypeProps;
- if ( aInternalType.getLength() > 0 && xAccess->hasByName( aInternalType ) )
+ if ( !aInternalType.isEmpty() && xAccess->hasByName( aInternalType ) )
{
xAccess->getByName( aInternalType ) >>= aTypeProps;
sal_Int32 nProps = aTypeProps.getLength();