summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 199a13ce045f..cf8d179b1ebf 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -156,20 +156,20 @@ namespace
}
//-----------------------------------------------------------------------------
- String GetFsysExtension_Impl( const String& rFile, const String& rLastFilterExt )
+ OUString GetFsysExtension_Impl( const OUString& rFile, const OUString& rLastFilterExt )
{
- xub_StrLen nDotPos = rFile.SearchBackward( '.' );
- if ( nDotPos != STRING_NOTFOUND )
+ sal_Int32 nDotPos = rFile.lastIndexOf( '.' );
+ if ( nDotPos != -1 )
{
- if ( rLastFilterExt.Len() )
+ if ( !rLastFilterExt.isEmpty() )
{
- if ( rFile.Copy( nDotPos + 1 ).EqualsIgnoreCaseAscii( rLastFilterExt ) )
- return String( rLastFilterExt );
+ if ( rFile.copy( nDotPos + 1 ).equalsIgnoreAsciiCase( rLastFilterExt ) )
+ return rLastFilterExt;
}
else
- return String( rFile.Copy( nDotPos ) );
+ return rFile.copy( nDotPos );
}
- return String();
+ return OUString();
}
//-----------------------------------------------------------------------------