summaryrefslogtreecommitdiff
path: root/sfx2/source/inet
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-28 14:37:44 +0200
committerNoel Grandin <noel@peralex.com>2013-08-29 09:30:18 +0200
commit35c24f9b6e08ef1328df01b2d3d11ef518897130 (patch)
tree17efd9777af84854e0f85cba759c92041875f4de /sfx2/source/inet
parentbdef90e108bdb557dcb207a15862453ec24645e1 (diff)
convert chunk of sfx internal code from String to OUString
Change-Id: Ibf728d8a80d62cb3b2bfa985d4e685b9749f7ab8
Diffstat (limited to 'sfx2/source/inet')
-rw-r--r--sfx2/source/inet/inettbc.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 3d96fb23c606..4c28036747ee 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -83,20 +83,20 @@ SvtURLBox* SfxURLToolBoxControl_Impl::GetURLBox() const
void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName, sal_Bool /*bNew*/ ) const
{
- String aName;
- String aFilter;
- String aOptions;
+ OUString aName;
+ OUString aFilter;
+ OUString aOptions;
INetURLObject aObj( rName );
if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
{
- String aBaseURL = GetURLBox()->GetBaseURL();
+ OUString aBaseURL = GetURLBox()->GetBaseURL();
aName = SvtURLBox::ParseSmart( rName, aBaseURL, SvtPathOptions().GetWorkPath() );
}
else
aName = rName;
- if ( !aName.Len() )
+ if ( aName.isEmpty() )
return;
Reference< XDispatchProvider > xDispatchProvider( getFrameInterface(), UNO_QUERY );
@@ -117,7 +117,7 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName, sal_Bool /*bNew*
aArgs[1].Name = OUString( "FileName" );
aArgs[1].Value = makeAny( OUString( aName ));
- if ( aFilter.Len() )
+ if ( !aFilter.isEmpty() )
{
aArgs.realloc( 4 );
aArgs[2].Name = OUString("FilterOptions");
@@ -167,9 +167,9 @@ Window* SfxURLToolBoxControl_Impl::CreateItemWindow( Window* pParent )
IMPL_LINK_NOARG(SfxURLToolBoxControl_Impl, SelectHdl)
{
SvtURLBox* pURLBox = GetURLBox();
- String aName( pURLBox->GetURL() );
+ OUString aName( pURLBox->GetURL() );
- if ( !pURLBox->IsTravelSelect() && aName.Len() )
+ if ( !pURLBox->IsTravelSelect() && !aName.isEmpty() )
OpenURL( aName, sal_False );
return 1L;
@@ -247,7 +247,7 @@ void SfxURLToolBoxControl_Impl::StateChanged
}
const SfxStringItem *pURL = PTR_CAST(SfxStringItem,pState);
- String aRep( pURL->GetValue() );
+ OUString aRep( pURL->GetValue() );
INetURLObject aURL( aRep );
INetProtocol eProt = aURL.GetProtocol();
if ( eProt == INET_PROT_FILE )