From 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Mon Sep 17 00:00:00 2001 From: elixir Date: Thu, 7 Mar 2013 19:35:49 +0530 Subject: fdo#38838: Converting String/UniString to OUString Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- fpicker/source/office/iodlg.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 74bf784e7dd6..592005cc50f0 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -1467,8 +1467,8 @@ SvtFileDialogFilter_Impl* SvtFileDialog::FindFilter_Impl if ( _bMultiExt ) { - sal_uInt16 nIdx = 0; - while ( !pFoundFilter && nIdx != STRING_NOTFOUND ) + sal_Int32 nIdx = 0; + while ( !pFoundFilter && nIdx != -1 ) { aSingleType = rType.GetToken( 0, FILEDIALOG_DEF_EXTSEP, nIdx ); #ifdef UNX @@ -3305,7 +3305,8 @@ void SvtFileDialog::appendDefaultExtension(String& _rFileName, if ( ! aType.EqualsAscii(FILEDIALOG_FILTER_ALL) ) { sal_uInt16 nWildCard = comphelper::string::getTokenCount(aType, FILEDIALOG_DEF_EXTSEP); - sal_uInt16 nIndex, nPos = 0; + sal_uInt16 nIndex; + sal_Int32 nPos = 0; for ( nIndex = 0; nIndex < nWildCard; nIndex++ ) { -- cgit