diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-06-13 22:07:41 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-18 08:11:58 +0000 |
commit | 8956854d8e7294b41e65d5aacbc43e11d1795711 (patch) | |
tree | d9d87ffd48d048ddc46fbb34181c3c2c50243981 /sfx2/source/appl/appcfg.cxx | |
parent | handle missing dep files in concat-deps (diff) | |
download | core-8956854d8e7294b41e65d5aacbc43e11d1795711.tar.gz core-8956854d8e7294b41e65d5aacbc43e11d1795711.zip |
String to OUString (SfxStringItem and related)
Change-Id: I390413e9ff3efee720a6423fb8695b4c655d7efa
Reviewed-on: https://gerrit.libreoffice.org/4280
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'sfx2/source/appl/appcfg.cxx')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index 8b0022aec34c..f424310cb188 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -366,10 +366,9 @@ sal_Bool SfxApplication::GetOptions( SfxItemSet& rSet ) if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_SECUREURLS)) { ::com::sun::star::uno::Sequence< OUString > seqURLs = aSecurityOptions.GetSecureURLs(); - std::vector<String> aList; + std::vector<OUString> aList; sal_uInt32 nCount = seqURLs.getLength(); - sal_uInt32 nURL; - for( nURL=0; nURL<nCount; ++nURL ) + for( sal_uInt32 nURL=0; nURL<nCount; ++nURL ) aList.push_back(seqURLs[nURL]); if( !rSet.Put( SfxStringListItem( rPool.GetWhich(SID_SECURE_URL), &aList ) ) ) @@ -757,12 +756,8 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet ) if ( SFX_ITEM_SET == rSet.GetItemState(SID_SECURE_URL, sal_True, &pItem)) { DBG_ASSERT(pItem->ISA(SfxStringListItem), "StringListItem expected"); - const std::vector<String> &aList = ((SfxStringListItem*)pItem)->GetList(); - sal_uInt32 nCount = aList.size(); - ::com::sun::star::uno::Sequence< OUString > seqURLs(nCount); - for( sal_uInt32 nPosition=0;nPosition<nCount;++nPosition) - seqURLs[nPosition] = aList[nPosition]; - + ::com::sun::star::uno::Sequence< OUString > seqURLs; + ((SfxStringListItem*)pItem)->GetStringList(seqURLs); aSecurityOptions.SetSecureURLs( seqURLs ); } |