From ab13b95e5cd3ce2feb83b5b5011fb21b84041f1e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Oct 2004 10:30:20 +0000 Subject: [PATCH] compilation fix after last checkin (missing header) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dataobj.cpp | 7 ++++++- src/gtk1/dataobj.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index 5a22da60b1..2111b237e8 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/dataobj.cpp @@ -20,6 +20,7 @@ #include "wx/mstream.h" #include "wx/image.h" #include "wx/log.h" +#include "wx/url.h" #include @@ -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 diff --git a/src/gtk1/dataobj.cpp b/src/gtk1/dataobj.cpp index 5a22da60b1..2111b237e8 100644 --- a/src/gtk1/dataobj.cpp +++ b/src/gtk1/dataobj.cpp @@ -20,6 +20,7 @@ #include "wx/mstream.h" #include "wx/image.h" #include "wx/log.h" +#include "wx/url.h" #include @@ -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 -- 2.45.2