Fix typo in code

It passed "make check" on Linux

Change-Id: Iae7db8b7627c5e4715860eafda8df98d2cb8f781
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103308
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2020-09-24 13:03:39 +02:00
committed by Julien Nabet
parent 7351a5028b
commit 881aca8eb1

View File

@@ -419,7 +419,7 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString&
loadLibrary( Name );
bool bKillCryptedFiles = false;
bool bKillUncryptedFiles = false;
bool bKillUnencryptedFiles = false;
// Remove or change password?
if( bOldPassword )
@@ -480,11 +480,11 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString&
// Store application basic crypted
uno::Reference< embed::XStorage > xStorage;
storeLibraries_Impl( xStorage, false );
bKillUncryptedFiles = true;
bKillUnencryptedFiles = true;
}
}
if( !(bKillCryptedFiles || bKillUncryptedFiles) )
if( !(bKillCryptedFiles || bKillUnencryptedFiles) )
return;
Sequence< OUString > aElementNames = pImplLib->getElementNames();
@@ -501,7 +501,7 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString&
aElementInetObj.insertName( aElementName, false,
INetURLObject::LAST_SEGMENT,
INetURLObject::EncodeMechanism::All );
if( bKillUncryptedFiles )
if( bKillUnencryptedFiles )
{
aElementInetObj.setExtension( maLibElementFileExtension );
}