]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUSE_DATETIME==0 compilation fix (part of patch 1203970)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Feb 2006 16:40:10 +0000 (16:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Feb 2006 16:40:10 +0000 (16:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/xrc/xmlres.h

index e0b0aef5606b941e05a419c3a7da8432c0c823b4..e48c0728c8f8165a39e5fa7d2c05b9918439135b 100644 (file)
@@ -68,12 +68,18 @@ class wxXmlResourceModule;
 class WXDLLIMPEXP_XRC wxXmlResourceDataRecord
 {
 public:
-    wxXmlResourceDataRecord() : Doc(NULL), Time(wxDateTime::Now()) {}
+    wxXmlResourceDataRecord() : Doc(NULL) {
+#if wxUSE_DATETIME
+        Time = wxDateTime::Now();
+#endif
+    }
     ~wxXmlResourceDataRecord() {delete Doc;}
 
     wxString File;
     wxXmlDocument *Doc;
+#if wxUSE_DATETIME
     wxDateTime Time;
+#endif
 };