diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-22 11:13:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-22 11:25:13 +0000 |
commit | def619581f3a833c4c476548c6d17a76d204dd28 (patch) | |
tree | bb80d634d1372b7cb4f497253db485e172b0e9af /sc/source/ui/docshell/docsh.cxx | |
parent | b4a89972cb6a6370224d5de3b88f9e642f93624a (diff) |
fix sc build
Change-Id: I2c5ad65863a516516f8a944fb1344753e08d6c9e
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 917c88b62c54..24e4c82b8d7d 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -803,11 +803,11 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) aValues[0].Value <<= ::rtl::OUString( GetMedium()->GetFilter()->GetFilterName() ); SFX_ITEMSET_ARG( GetMedium()->GetItemSet(), pPasswordItem, SfxStringItem, SID_PASSWORD, false); - if ( pPasswordItem && pPasswordItem->GetValue().Len() ) + if ( pPasswordItem && !pPasswordItem->GetValue().isEmpty() ) { aValues.realloc( 2 ); - aValues[1].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Password") ); - aValues[1].Value <<= ::rtl::OUString( pPasswordItem->GetValue() ); + aValues[1].Name = OUString("Password"); + aValues[1].Value <<= pPasswordItem->GetValue(); } SC_MOD()->SetInSharedDocSaving( true ); |