[Libreoffice-commits] core.git: fpicker/source

Michael Stahl mstahl at redhat.com
Mon Oct 28 07:24:57 PDT 2013


 fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit bb13b922b66d14f40a0be16bc380e462a1ea6432
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Oct 28 15:21:34 2013 +0100

    fpicker: warning C4018: '<': signed/unsigned mismatch
    
    Change-Id: I51652d573f59e6ca3b00385790bf14d478f03074

diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index 1e5f9cd..2494e15 100644
--- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
@@ -901,7 +901,8 @@ void VistaFilePickerImpl::impl_sta_ShowDialogModal(const RequestRef& rRequest)
                     hResult = iDialog->GetFileTypeIndex(&nFileType);
                     if ( SUCCEEDED(hResult) && nFileType > 0 )
                     {
-                        ::sal_Int32 nRealIndex = (nFileType-1); // COM dialog base on 1 ... filter container on 0 .-)
+                        // COM dialog base on 1 ... filter container on 0 .-)
+                        ::size_t nRealIndex = (nFileType-1);
                         ::std::vector< COMDLG_FILTERSPEC > lFilters = lcl_buildFilterList(m_lFilters);
                         if ( nRealIndex < lFilters.size() )
                         {


More information about the Libreoffice-commits mailing list