diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-13 19:13:55 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-13 19:13:55 -0200 |
commit | ad6ce5e938ce9d78bed9ce6dead5fa087de49c63 (patch) | |
tree | 668b0b73f6aa515e4303b946136c155f9d38ae4e /svtools/source/misc/imagemgr.cxx | |
parent | 38423e0ad2a8e2a902aeb37391aef0b543c09d68 (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.cxx | 2 |
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(); |