embeddedobj/source/commonembedding/persistence.cxx | 34 ++---
embeddedobj/source/commonembedding/xfactory.cxx| 22 ++---
embeddedobj/source/general/docholder.cxx |8 ++--
embeddedobj/source/general/dummyobject.cxx |4 +-
embeddedobj/source/general/xcreator.cxx| 24 +++---
embeddedobj/source/msole/oleembed.cxx | 20 ++--
embeddedobj/source/msole/olemisc.cxx |4 +-
embeddedobj/source/msole/olepersist.cxx| 24 +++---
embeddedobj/source/msole/ownview.cxx | 26
embeddedobj/source/msole/xolefactory.cxx | 10 +++---
10 files changed, 88 insertions(+), 88 deletions(-)
New commits:
commit 7c0c3362de894ddd4526f56e1849f116eb25cedd
Author: Olivier Hallot olivier.hal...@alta.org.br
Date: Wed Dec 21 19:54:11 2011 -0200
Fix for fdo43460 Part XV getLength() to isEmpty()
Part XV
Module
embeddeobj
diff --git a/embeddedobj/source/commonembedding/persistence.cxx
b/embeddedobj/source/commonembedding/persistence.cxx
index 8afe92d..654e221 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -246,7 +246,7 @@ static void SetDocToEmbedded( const uno::Reference
frame::XModel xDocument, c
aSeq[0].Value = sal_True;
xDocument-attachResource( ::rtl::OUString(), aSeq );
-if ( aModuleName.getLength() )
+if ( !aModuleName.isEmpty() )
{
try
{
@@ -465,7 +465,7 @@ uno::Reference util::XCloseable
OCommonEmbeddedObject::LoadLink_Impl()
::rtl::OUString OCommonEmbeddedObject::GetFilterName( sal_Int32 nVersion )
const
{
::rtl::OUString aFilterName = GetPresetFilterName();
-if ( !aFilterName.getLength() )
+if ( aFilterName.isEmpty() )
{
try {
::comphelper::MimeConfigurationHelper aHelper( m_xFactory );
@@ -486,8 +486,8 @@ void OCommonEmbeddedObject::FillDefaultLoadArgs_Impl( const
uno::Reference embe
o_rLoadArgs.put( ReadOnly, m_bReadOnly );
::rtl::OUString aFilterName = GetFilterName(
::comphelper::OStorageHelper::GetXStorageFormat( i_rxStorage ) );
-OSL_ENSURE( aFilterName.getLength(),
OCommonEmbeddedObject::FillDefaultLoadArgs_Impl: Wrong document service name!
);
-if ( !aFilterName.getLength() )
+OSL_ENSURE( !aFilterName.isEmpty(),
OCommonEmbeddedObject::FillDefaultLoadArgs_Impl: Wrong document service name!
);
+if ( aFilterName.isEmpty() )
throw io::IOException();// TODO: error message/code
o_rLoadArgs.put( FilterName, aFilterName );
@@ -543,7 +543,7 @@ uno::Reference util::XCloseable
OCommonEmbeddedObject::LoadDocumentFromStorag
{
}
-OSL_ENSURE( aTempFileURL.getLength(), Coudn't retrieve temporary file
URL!\n );
+OSL_ENSURE( !aTempFileURL.isEmpty(), Coudn't retrieve temporary file
URL!\n );
aLoadArgs.put( URL, aTempFileURL );
aLoadArgs.put( InputStream, xTempInpStream );
@@ -613,8 +613,8 @@ uno::Reference io::XInputStream
OCommonEmbeddedObject::StoreDocumentToTempStr
::rtl::OUString aFilterName = GetFilterName( nStorageFormat );
-OSL_ENSURE( aFilterName.getLength(), Wrong document service name! );
-if ( !aFilterName.getLength() )
+OSL_ENSURE( !aFilterName.isEmpty(), Wrong document service name! );
+if ( aFilterName.isEmpty() )
throw io::IOException(); // TODO:
uno::Sequence beans::PropertyValue aArgs( 4 );
@@ -692,7 +692,7 @@ void OCommonEmbeddedObject::SaveObject_Impl()
{}
}
-if ( !aBaseURL.getLength() )
+if ( aBaseURL.isEmpty() )
{
for ( nInd = 0; nInd m_aDocMediaDescriptor.getLength(); nInd++ )
if ( m_aDocMediaDescriptor[nInd].Name.equals(
@@ -703,7 +703,7 @@ void OCommonEmbeddedObject::SaveObject_Impl()
}
}
-if ( !aBaseURL.getLength() )
+if ( aBaseURL.isEmpty() )
aBaseURL = m_aDefaultParentBaseURL;
return aBaseURL;
@@ -724,7 +724,7 @@ void OCommonEmbeddedObject::SaveObject_Impl()
break;
}
-if ( !aBaseURL.getLength() )
+if ( aBaseURL.isEmpty() )
{
for ( nInd = 0; nInd lObjArgs.getLength(); nInd++ )
if ( lObjArgs[nInd].Name.equals( ::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( DefaultParentBaseURL ) ) ) )
@@ -775,8 +775,8 @@ void OCommonEmbeddedObject::StoreDocToStorage_Impl( const
uno::Reference embed:
{
::rtl::OUString aFilterName = GetFilterName( nStorageFormat );
-OSL_ENSURE( aFilterName.getLength(), Wrong document service name! );
-if ( !aFilterName.getLength() )
+OSL_ENSURE( !aFilterName.isEmpty(), Wrong document service name! );
+if ( aFilterName.isEmpty() )
throw io::IOException(); // TODO:
uno::Sequence beans::PropertyValue aArgs( 3 );
@@ -896,7