]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
Open curley braces '{' that were preceeded by a '\' were being incorrectly counted...
[wxWidgets.git] / src / xrc / xmlres.cpp
index 9da7526c0522bda0906e9d478c0ae1dd48678fc8..d9b2c4afff46ab1412cdde7e4a1db1088fc39fbe 100644 (file)
@@ -410,7 +410,11 @@ bool wxXmlResource::UpdateResources()
                 }
 
                 ProcessPlatformProperty(m_data[i].Doc->GetRoot());
+#if wxUSE_FILESYSTEM
                                m_data[i].Time = file->GetModificationTime();
+#else
+                m_data[i].Time = wxDateTime(wxFileModificationTime(m_data[i].File));
+#endif
                        }
 
 #           if wxUSE_FILESYSTEM
@@ -985,7 +989,7 @@ wxSize wxXmlResourceHandler::GetSize(const wxString& param)
     wxString s = GetParamValue(param);
     if (s.IsEmpty()) s = wxT("-1,-1");
     bool is_dlg;
-    long sx, sy;
+    long sx, sy = 0;
 
     is_dlg = s[s.Length()-1] == wxT('d');
     if (is_dlg) s.RemoveLast();