diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-23 07:19:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-25 19:24:23 +0200 |
commit | 98de5b40c8a3fd4e57477b6d994e3b1472207f71 (patch) | |
tree | 567fdbbaecbddbfc19f28a08da5d1f6d5207748c /fpicker | |
parent | 0552a91acde9dce28c0d92c552d21fbadfcb9184 (diff) |
Related: fdo#38838 remove UniString::EqualsIgnoreCaseAscii
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 16 |
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(); } //----------------------------------------------------------------------------- |