diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-10 17:29:21 -0200 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-12-13 00:11:25 +0400 |
commit | 9201704ede70498a850bee6d15f0340d58f3889c (patch) | |
tree | 56a01cff17d5f5c707d113c9fd2081fd4a640ac9 /basic | |
parent | 96692c301d67bd74f9a97f6b998bec6314be1b44 (diff) |
Fix for fdo43460 Part IV getLength to isEmpty
Part IV
Module
basic (small fix per demand from Ivan Timofeev)
binaryurp
bridges
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index c6fbc5d842bb..9dd01a129b85 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -473,8 +473,8 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString& if( OldPassword == NewPassword ) return; - sal_Bool bOldPassword = ( !OldPassword.isEmpty() ); - sal_Bool bNewPassword = ( !NewPassword.isEmpty() ); + sal_Bool bOldPassword = !OldPassword.isEmpty(); + sal_Bool bNewPassword = !NewPassword.isEmpty(); sal_Bool bStorage = mxStorage.is() && !pImplLib->mbLink; if( pImplLib->mbReadOnly || (bOldPassword && !pImplLib->mbPasswordProtected) ) |