diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-19 15:20:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-01 10:08:36 +0200 |
commit | a952bd8aacba91ed654f11da07cbf0059d378918 (patch) | |
tree | c0fdd92d645df903db778c0b2606ac41be8a2e80 /extensions/source/abpilot | |
parent | de6a35f52276b601a8ebc68fbcfd28ad2db84f6f (diff) |
convert extensions module from String to OUString
Change-Id: Ia0cb9fe1eaebdd295fb1742074fe2c48be61c077
Diffstat (limited to 'extensions/source/abpilot')
-rw-r--r-- | extensions/source/abpilot/abpfinalpage.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/extensions/source/abpilot/abpfinalpage.cxx b/extensions/source/abpilot/abpfinalpage.cxx index 0802f0ae4d61..9bb73f179a6d 100644 --- a/extensions/source/abpilot/abpfinalpage.cxx +++ b/extensions/source/abpilot/abpfinalpage.cxx @@ -89,15 +89,15 @@ namespace abp INetURLObject aURL( rSettings.sDataSourceName ); if( aURL.GetProtocol() == INET_PROT_NOT_VALID ) { - String sPath = SvtPathOptions().GetWorkPath(); - sPath += '/'; - sPath += String(rSettings.sDataSourceName); + OUString sPath = SvtPathOptions().GetWorkPath(); + sPath += "/"; + sPath += rSettings.sDataSourceName; const SfxFilter* pFilter = lcl_getBaseFilter(); if ( pFilter ) { - String sExt = pFilter->GetDefaultExtension(); - sPath += sExt.GetToken(1,'*'); + OUString sExt = pFilter->GetDefaultExtension(); + sPath += sExt.getToken(1,'*'); } aURL.SetURL(sPath); @@ -105,11 +105,11 @@ namespace abp OSL_ENSURE( aURL.GetProtocol() != INET_PROT_NOT_VALID ,"No valid file name!"); rSettings.sDataSourceName = aURL.GetMainURL( INetURLObject::NO_DECODE ); m_aLocationController.setURL( rSettings.sDataSourceName ); - String sName = aURL.getName( ); - xub_StrLen nPos = sName.Search(String(aURL.GetExtension())); - if ( nPos != STRING_NOTFOUND ) + OUString sName = aURL.getName( ); + sal_Int32 nPos = sName.indexOf(aURL.GetExtension()); + if ( nPos != -1 ) { - sName.Erase(nPos-1,4); + sName = sName.replaceAt(nPos-1, 4, ""); } m_aName.SetText(sName); |