Lines 605-611
Link Here
|
605 |
meInitMode = DEFAULT; |
605 |
meInitMode = DEFAULT; |
606 |
INetURLObject aInitUrlInetObj( maInitialDocumentURL ); |
606 |
INetURLObject aInitUrlInetObj( maInitialDocumentURL ); |
607 |
OUString aInitFileName = aInitUrlInetObj.GetMainURL( INetURLObject::NO_DECODE ); |
607 |
OUString aInitFileName = aInitUrlInetObj.GetMainURL( INetURLObject::NO_DECODE ); |
608 |
if( aInitFileName.getLength() ) |
608 |
if( !aInitFileName.isEmpty() ) |
609 |
{ |
609 |
{ |
610 |
// We need a BasicManager to avoid problems |
610 |
// We need a BasicManager to avoid problems |
611 |
StarBASIC* pBas = new StarBASIC(); |
611 |
StarBASIC* pBas = new StarBASIC(); |
Lines 834-840
Link Here
|
834 |
|
834 |
|
835 |
// Check storage URL |
835 |
// Check storage URL |
836 |
OUString aStorageURL = rLib.aStorageURL; |
836 |
OUString aStorageURL = rLib.aStorageURL; |
837 |
if( !bStorage && !aStorageURL.getLength() && nPass == 0 ) |
837 |
if( !bStorage && aStorageURL.isEmpty() && nPass == 0 ) |
838 |
{ |
838 |
{ |
839 |
String aLibraryPath; |
839 |
String aLibraryPath; |
840 |
if( meInitMode == CONTAINER_INIT_FILE ) |
840 |
if( meInitMode == CONTAINER_INIT_FILE ) |
Lines 1239-1245
Link Here
|
1239 |
rtl::OUString aLibURL; |
1239 |
rtl::OUString aLibURL; |
1240 |
|
1240 |
|
1241 |
bool bPureDialogLib = false; |
1241 |
bool bPureDialogLib = false; |
1242 |
while( (aLibURL = aScriptIt.nextBasicOrDialogLibrary( bPureDialogLib )).getLength() > 0 ) |
1242 |
while( (aLibURL = aScriptIt.nextBasicOrDialogLibrary( bPureDialogLib )).isEmpty() == false ) |
1243 |
{ |
1243 |
{ |
1244 |
if( bPureDialogLib && maInfoFileName.equalsAscii( "script" ) ) |
1244 |
if( bPureDialogLib && maInfoFileName.equalsAscii( "script" ) ) |
1245 |
continue; |
1245 |
continue; |
Lines 1351-1357
Link Here
|
1351 |
( SfxLibrary* pLib, const OUString& aName ) |
1351 |
( SfxLibrary* pLib, const OUString& aName ) |
1352 |
{ |
1352 |
{ |
1353 |
OUString aLibDirPath = pLib->maStorageURL; |
1353 |
OUString aLibDirPath = pLib->maStorageURL; |
1354 |
if( !aLibDirPath.getLength() ) |
1354 |
if( aLibDirPath.isEmpty() ) |
1355 |
{ |
1355 |
{ |
1356 |
INetURLObject aInetObj( String(maLibraryPath).GetToken(1) ); |
1356 |
INetURLObject aInetObj( String(maLibraryPath).GetToken(1) ); |
1357 |
aInetObj.insertName( aName, sal_True, INetURLObject::LAST_SEGMENT, sal_True, INetURLObject::ENCODE_ALL ); |
1357 |
aInetObj.insertName( aName, sal_True, INetURLObject::LAST_SEGMENT, sal_True, INetURLObject::ENCODE_ALL ); |
Lines 1976-1982
Link Here
|
1976 |
|
1976 |
|
1977 |
// if we did an in-place save into a storage (i.e. a save into the storage we were already based on), |
1977 |
// if we did an in-place save into a storage (i.e. a save into the storage we were already based on), |
1978 |
// then we need to clean up the temporary storage we used for this |
1978 |
// then we need to clean up the temporary storage we used for this |
1979 |
if ( bInplaceStorage && sTempTargetStorName.getLength() ) |
1979 |
if ( bInplaceStorage && !sTempTargetStorName.isEmpty() ) |
1980 |
{ |
1980 |
{ |
1981 |
OSL_ENSURE( xSourceLibrariesStor.is(), "SfxLibrariesContainer::storeLibraries_impl: unexpected: we should have a source storage here!" ); |
1981 |
OSL_ENSURE( xSourceLibrariesStor.is(), "SfxLibrariesContainer::storeLibraries_impl: unexpected: we should have a source storage here!" ); |
1982 |
try |
1982 |
try |
Lines 3119-3125
Link Here
|
3119 |
implSetModified( sal_True ); |
3119 |
implSetModified( sal_True ); |
3120 |
|
3120 |
|
3121 |
// Remove element file |
3121 |
// Remove element file |
3122 |
if( maStorageURL.getLength() ) |
3122 |
if( !maStorageURL.isEmpty() ) |
3123 |
{ |
3123 |
{ |
3124 |
INetURLObject aElementInetObj( maStorageURL ); |
3124 |
INetURLObject aElementInetObj( maStorageURL ); |
3125 |
aElementInetObj.insertName( _rElementName, sal_False, |
3125 |
aElementInetObj.insertName( _rElementName, sal_False, |
Lines 3254-3260
Link Here
|
3254 |
{ |
3254 |
{ |
3255 |
rtl::OUString aRetLib; |
3255 |
rtl::OUString aRetLib; |
3256 |
|
3256 |
|
3257 |
while( !aRetLib.getLength() && m_eState != END_REACHED ) |
3257 |
while( aRetLib.isEmpty() && m_eState != END_REACHED ) |
3258 |
{ |
3258 |
{ |
3259 |
switch( m_eState ) |
3259 |
switch( m_eState ) |
3260 |
{ |
3260 |
{ |