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:
committed by
Julien Nabet
parent
7351a5028b
commit
881aca8eb1
@@ -419,7 +419,7 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString&
|
|||||||
loadLibrary( Name );
|
loadLibrary( Name );
|
||||||
|
|
||||||
bool bKillCryptedFiles = false;
|
bool bKillCryptedFiles = false;
|
||||||
bool bKillUncryptedFiles = false;
|
bool bKillUnencryptedFiles = false;
|
||||||
|
|
||||||
// Remove or change password?
|
// Remove or change password?
|
||||||
if( bOldPassword )
|
if( bOldPassword )
|
||||||
@@ -480,11 +480,11 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString&
|
|||||||
// Store application basic crypted
|
// Store application basic crypted
|
||||||
uno::Reference< embed::XStorage > xStorage;
|
uno::Reference< embed::XStorage > xStorage;
|
||||||
storeLibraries_Impl( xStorage, false );
|
storeLibraries_Impl( xStorage, false );
|
||||||
bKillUncryptedFiles = true;
|
bKillUnencryptedFiles = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !(bKillCryptedFiles || bKillUncryptedFiles) )
|
if( !(bKillCryptedFiles || bKillUnencryptedFiles) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Sequence< OUString > aElementNames = pImplLib->getElementNames();
|
Sequence< OUString > aElementNames = pImplLib->getElementNames();
|
||||||
@@ -501,7 +501,7 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString&
|
|||||||
aElementInetObj.insertName( aElementName, false,
|
aElementInetObj.insertName( aElementName, false,
|
||||||
INetURLObject::LAST_SEGMENT,
|
INetURLObject::LAST_SEGMENT,
|
||||||
INetURLObject::EncodeMechanism::All );
|
INetURLObject::EncodeMechanism::All );
|
||||||
if( bKillUncryptedFiles )
|
if( bKillUnencryptedFiles )
|
||||||
{
|
{
|
||||||
aElementInetObj.setExtension( maLibElementFileExtension );
|
aElementInetObj.setExtension( maLibElementFileExtension );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user