From 98de5b40c8a3fd4e57477b6d994e3b1472207f71 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 23 Sep 2013 07:19:08 +0100 Subject: Related: fdo#38838 remove UniString::EqualsIgnoreCaseAscii Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc --- fpicker/source/office/iodlg.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'fpicker') 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(); } //----------------------------------------------------------------------------- -- cgit