summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-28 09:31:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-28 11:50:15 +0100
commit396ab1eba7be8dcedf09854035b9f22137540d56 (patch)
tree49b2dcb61f98a9dd7ff5b12223adae6a4e946564 /sc/source/ui/docshell
parent31fc0b74425253589b2ac0dcecb9e8a2714954b4 (diff)
convert pdf security page to .ui
Change-Id: Ie785f4b112b8992707f886720d92bd34d0823f39
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 5511b61cfdee..48ed4c6e3385 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1128,9 +1128,9 @@ bool ScDocShell::ExecuteChangeProtectionDialog( Window* _pParent, sal_Bool bJust
if ( bJustQueryIfProtected && !bProtected )
return true;
- String aTitle( ScResId( bProtected ? SCSTR_CHG_UNPROTECT : SCSTR_CHG_PROTECT ) );
- String aText( ScResId( SCSTR_PASSWORD ) );
- String aPassword;
+ OUString aTitle( ScResId( bProtected ? SCSTR_CHG_UNPROTECT : SCSTR_CHG_PROTECT ) );
+ OUString aText( ScResId( SCSTR_PASSWORD ) );
+ OUString aPassword;
SfxPasswordDialog* pDlg = new SfxPasswordDialog(
_pParent ? _pParent : GetActiveDialogParent(), &aText );
@@ -1144,7 +1144,7 @@ bool ScDocShell::ExecuteChangeProtectionDialog( Window* _pParent, sal_Bool bJust
aPassword = pDlg->GetPassword();
delete pDlg;
- if ( aPassword.Len() )
+ if (!aPassword.isEmpty())
{
if ( bProtected )
{