]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mimetype.cpp
fixed gcc 3.3 compilation warnings
[wxWidgets.git] / src / unix / mimetype.cpp
index 0d1b83011c5ee50e65b9f78894fb318bac4c7918..1c6eb62aae4e1d6bbe3bb79abd40229be90039a2 100644 (file)
@@ -77,6 +77,7 @@
 #include "wx/dir.h"
 #include "wx/utils.h"
 #include "wx/tokenzr.h"
+#include "wx/iconloc.h"
 
 #include "wx/unix/mimetype.h"
 
@@ -1187,7 +1188,7 @@ bool wxFileTypeImpl::GetIcon(wxIconLocation *iconLoc) const
 
     if ( iconLoc )
     {
-        iconLoc->SetIconFile(sTmp);
+        iconLoc->SetFileName(sTmp);
     }
 
     return TRUE;
@@ -1820,7 +1821,8 @@ int wxMimeTypesManagerImpl::AddToMimeData(const wxString& strType,
         m_aEntries.Add(entry ? entry : new wxMimeTypeCommands);
 
         // change nIndex so we can use it below to add the extensions
-        nIndex = m_aExtensions.Add(wxEmptyString);
+        m_aExtensions.Add(wxEmptyString);
+        nIndex = m_aExtensions.size();
 
         m_aDescriptions.Add(strDesc);
     }