diff options
Diffstat (limited to 'sd/source/filter')
-rw-r--r-- | sd/source/filter/eppt/eppt.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptexanimations.cxx | 6 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-animations.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx index 7a378baa3bbf..92caecc4da3c 100644 --- a/sd/source/filter/eppt/eppt.cxx +++ b/sd/source/filter/eppt/eppt.cxx @@ -836,7 +836,7 @@ bool PPTWriter::ImplCreateDocument() if ( aXCont.is() ) { css::uno::Sequence< OUString> aNameSeq( aXCont->getElementNames() ); - if ( aNameSeq.getLength() ) + if ( aNameSeq.hasElements() ) { mpPptEscherEx->OpenContainer( EPP_NamedShows ); sal_uInt32 nCustomShowIndex = 0; diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx index cf2ed32f21f2..ae0c3c8e6c32 100644 --- a/sd/source/filter/eppt/pptexanimations.cxx +++ b/sd/source/filter/eppt/pptexanimations.cxx @@ -749,7 +749,7 @@ bool AnimationExporter::GetNodeType( const Reference< XAnimationNode >& xNode, s { // trying to get the nodetype Sequence< NamedValue > aUserData = xNode->getUserData(); - if ( aUserData.getLength() ) + if ( aUserData.hasElements() ) { const NamedValue* p = aUserData.getConstArray(); sal_Int32 nLength = aUserData.getLength(); @@ -862,7 +862,7 @@ void AnimationExporter::GetUserData( const Sequence< NamedValue >& rUserData, co { // storing user data into pAny, to allow direct access later memset( pAny, 0, nLen ); - if ( !rUserData.getLength() ) + if ( !rUserData.hasElements() ) return; const NamedValue* p = rUserData.getConstArray(); @@ -1788,7 +1788,7 @@ void AnimationExporter::exportAnimateKeyPoints( SvStream& rStrm, const Reference Sequence< double > aKeyTimes( xAnimate->getKeyTimes() ); Sequence< Any > aValues( xAnimate->getValues() ); OUString aFormula( xAnimate->getFormula() ); - if ( !aKeyTimes.getLength() ) + if ( !aKeyTimes.hasElements() ) return; EscherExContainer aAnimKeyPoints( rStrm, DFF_msofbtAnimKeyPoints ); diff --git a/sd/source/filter/eppt/pptx-animations.cxx b/sd/source/filter/eppt/pptx-animations.cxx index c1c86f46ae3a..1a35c7777e2a 100644 --- a/sd/source/filter/eppt/pptx-animations.cxx +++ b/sd/source/filter/eppt/pptx-animations.cxx @@ -195,7 +195,7 @@ void WriteAnimateTo(const FSHelperPtr& pFS, const Any& rValue, const OUString& r void WriteAnimateValues(const FSHelperPtr& pFS, const Reference<XAnimate>& rXAnimate) { const Sequence<double> aKeyTimes = rXAnimate->getKeyTimes(); - if (aKeyTimes.getLength() <= 0) + if (!aKeyTimes.hasElements()) return; const Sequence<Any> aValues = rXAnimate->getValues(); const OUString& sFormula = rXAnimate->getFormula(); diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index a7d51cfcd57e..e6a1495ee4a5 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -1769,7 +1769,7 @@ bool PowerPointExport::WriteColorSchemes(const FSHelperPtr& pFS, const OUString& aGrabBag.getValue(rThemePath) >>= aCurrentTheme; - if (!aCurrentTheme.getLength()) + if (!aCurrentTheme.hasElements()) return false; // Order is important diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index 9e3c9c579689..cedd642a65f3 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -358,7 +358,7 @@ ErrCode ReadThroughComponent( // set Base URL uno::Reference< beans::XPropertySet > xInfoSet; - if( rFilterArguments.getLength() > 0 ) + if( rFilterArguments.hasElements() ) rFilterArguments.getConstArray()[0] >>= xInfoSet; DBG_ASSERT( xInfoSet.is(), "missing property set" ); if( xInfoSet.is() ) |