]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix after last checkin (missing header)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Oct 2004 10:30:20 +0000 (10:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Oct 2004 10:30:20 +0000 (10:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dataobj.cpp
src/gtk1/dataobj.cpp

index 5a22da60b16a0ab6522e3f4189a312d9fb8d8f4f..2111b237e8608827d8164af84eee2011c16c72e8 100644 (file)
@@ -20,6 +20,7 @@
 #include "wx/mstream.h"
 #include "wx/image.h"
 #include "wx/log.h"
+#include "wx/url.h"
 
 #include <gdk/gdk.h>
 
@@ -277,7 +278,11 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
                     lenPrefix += 2;
                 }
 
-                AddFile(wxURL::ConvertFromURI(filename.c_str() + lenPrefix));
+                AddFile(
+#if wxUSE_URL
+                        wxURL::ConvertFromURI
+#endif // wxUSE_URL
+                            (filename.c_str() + lenPrefix));
                 filename.Empty();
             }
             else
index 5a22da60b16a0ab6522e3f4189a312d9fb8d8f4f..2111b237e8608827d8164af84eee2011c16c72e8 100644 (file)
@@ -20,6 +20,7 @@
 #include "wx/mstream.h"
 #include "wx/image.h"
 #include "wx/log.h"
+#include "wx/url.h"
 
 #include <gdk/gdk.h>
 
@@ -277,7 +278,11 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
                     lenPrefix += 2;
                 }
 
-                AddFile(wxURL::ConvertFromURI(filename.c_str() + lenPrefix));
+                AddFile(
+#if wxUSE_URL
+                        wxURL::ConvertFromURI
+#endif // wxUSE_URL
+                            (filename.c_str() + lenPrefix));
                 filename.Empty();
             }
             else