summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-03-19 23:07:53 +0100
committerNoel Power <noel.power@suse.com>2013-03-20 12:10:09 +0000
commit9d548d56cf19b01273f719b52a45f48ab13ed45a (patch)
tree8b60dd5d056f93cb38bcd25c124b97e26c09a3f5 /fpicker
parent77c87c18697e19cb4606717af0e4b0e5ab2139bc (diff)
Replace String with OUString (unotools)
Change-Id: I9a0677cb36805d0a27514824c937901f73fee1c8 Reviewed-on: https://gerrit.libreoffice.org/2864 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 592005cc50f0..51b05ece2453 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -1202,7 +1202,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
}
else
{
- String aCurPath;
+ OUString aCurPath;
if ( ::utl::LocalFileHelper::ConvertURLToSystemPath( aFileName, aCurPath ) )
{
// if content does not exist: at least its path must exist
@@ -1545,13 +1545,13 @@ void SvtFileDialog::UpdateControls( const String& rURL )
//=========================================================================
{
- String sText;
+ OUString sText;
DBG_ASSERT( INET_PROT_NOT_VALID != aObj.GetProtocol(), "SvtFileDialog::UpdateControls: Invalid URL!" );
if ( aObj.getSegmentCount() )
{
::utl::LocalFileHelper::ConvertURLToSystemPath( rURL, sText );
- if ( sText.Len() )
+ if ( !sText.isEmpty() )
{
// no Fsys path for server file system ( only UCB has mountpoints! )
if ( INET_PROT_FILE != aObj.GetProtocol() )
@@ -1559,7 +1559,7 @@ void SvtFileDialog::UpdateControls( const String& rURL )
INetURLObject::GetScheme( aObj.GetProtocol() ).getLength() ) );
}
- if ( !sText.Len() && aObj.getSegmentCount() )
+ if ( sText.isEmpty() && aObj.getSegmentCount() )
sText = rURL;
}
@@ -1577,7 +1577,7 @@ void SvtFileDialog::UpdateControls( const String& rURL )
sText = sURL;
}
- if ( !sText.Len() && rURL.Len() )
+ if ( sText.isEmpty() && rURL.Len() )
// happens, for instance, for URLs which the INetURLObject does not know to belong to a hierarchical scheme
sText = rURL;
_pImp->_pEdCurrentPath->SetText( sText );
@@ -1973,13 +1973,13 @@ void SvtFileDialog::displayIOException( const String& _rURL, IOErrorCode _eCode
try
{
// create make a human-readable string from the URL
- String sDisplayPath( _rURL );
+ OUString sDisplayPath( _rURL );
::utl::LocalFileHelper::ConvertURLToSystemPath( _rURL, sDisplayPath );
// build an own exception which tells "access denied"
InteractiveAugmentedIOException aException;
aException.Arguments.realloc( 2 );
- aException.Arguments[ 0 ] <<= OUString( sDisplayPath );
+ aException.Arguments[ 0 ] <<= sDisplayPath;
aException.Arguments[ 1 ] <<= PropertyValue(
OUString( "Uri" ),
-1, aException.Arguments[ 0 ], PropertyState_DIRECT_VALUE