]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
use a filename, not URL, when quering its modification time
[wxWidgets.git] / src / xrc / xmlres.cpp
index d85ca8d4598f9b6e404023f4cbcb3e2d86c4fb32..18c84d66645e1108d12fcd89e597a8a4b31ca928 100644 (file)
@@ -1351,15 +1351,14 @@ wxFont wxXmlResourceHandler::GetFont(const wxString& param)
     if (hasFacename)
     {
         wxString faces = GetParamValue(wxT("face"));
-        wxFontEnumerator enu;
-        enu.EnumerateFacenames();
+        wxArrayString facenames(wxFontEnumerator::GetFacenames());
         wxStringTokenizer tk(faces, wxT(","));
         while (tk.HasMoreTokens())
         {
-            int index = enu.GetFacenames()->Index(tk.GetNextToken(), false);
+            int index = facenames.Index(tk.GetNextToken(), false);
             if (index != wxNOT_FOUND)
             {
-                facename = (*enu.GetFacenames())[index];
+                facename = facenames[index];
                 break;
             }
         }